Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
fbb7f1ab
Commit
fbb7f1ab
authored
Nov 03, 2020
by
Bogdan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated routes.yml for Duplicated Ttraces
parent
c793e6df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
routes.yml
...ub-in/trace-retrieval-microservice/app/configs/routes.yml
+33
-0
transactions.py
...n/trace-retrieval-microservice/app/routes/transactions.py
+7
-0
No files found.
src/transaction-hub-in/trace-retrieval-microservice/app/configs/routes.yml
View file @
fbb7f1ab
...
@@ -62,6 +62,39 @@ paths:
...
@@ -62,6 +62,39 @@ paths:
responses
:
responses
:
'
200'
:
'
200'
:
description
:
"
Successful
Request"
description
:
"
Successful
Request"
/use_cases/{use_case}/transactions-duplicated
:
delete
:
security
:
-
JwtRegular
:
[]
operationId
:
"
routes.transactions.delete_all_duplicated_for_use_case"
tags
:
-
"
Transactions"
summary
:
"
Deletes
all
duplicated
Transactions
in
the
given
Use-Case"
description
:
"
Deletes
all
duplicated
Transactions
in
the
given
Use-Case"
parameters
:
-
in
:
path
name
:
"
use_case"
required
:
true
type
:
"
string"
responses
:
'
200'
:
description
:
"
Successful
Request"
get
:
security
:
-
JwtRegular
:
[]
operationId
:
"
routes.transactions.all_duplicated_for_use_case"
tags
:
-
"
Transactions"
summary
:
"
Retrieves
all
duplicated
Transactions
in
the
given
Use-Case"
description
:
"
Retrieves
all
duplicated
Transactions
in
the
given
Use-Case"
parameters
:
-
in
:
path
name
:
"
use_case"
required
:
true
type
:
"
string"
responses
:
'
200'
:
description
:
"
Successful
Request"
/debug
:
/debug
:
post
:
post
:
...
...
src/transaction-hub-in/trace-retrieval-microservice/app/routes/transactions.py
View file @
fbb7f1ab
...
@@ -21,3 +21,10 @@ def all_failed_for_use_case(use_case: str):
...
@@ -21,3 +21,10 @@ def all_failed_for_use_case(use_case: str):
def
delete_all_failed_for_use_case
(
use_case
:
str
):
def
delete_all_failed_for_use_case
(
use_case
:
str
):
_repository
.
delete_all_failed_transactions
(
use_case
)
_repository
.
delete_all_failed_transactions
(
use_case
)
return
Response
(
status
=
200
)
return
Response
(
status
=
200
)
def
all_duplicated_for_use_case
(
use_case
:
str
):
return
_repository
.
all_duplicated_transactions_for_use_case
(
use_case
)
def
delete_all_duplicated_for_use_case
(
use_case
:
str
):
_repository
.
delete_all_duplicated_transactions
(
use_case
)
return
Response
(
status
=
200
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment