Skip to content

Commit

Permalink
Merge pull request #174 from regulaforensics/SP-16044/Add_get_transac…
Browse files Browse the repository at this point in the history
…tions_by_tag_endpoint

SP-16044: Add get transactions by tag endpoint
  • Loading branch information
KirylKovaliov committed Jun 13, 2024
2 parents 722ca7e + 0e450ec commit d907735
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ paths:
$ref: "./p-transaction.yml#/paths/~1transaction~1{transactionId}~1file"
/api/v2/tag/{tagId}:
$ref: "./p-transaction.yml#/paths/~1tag~1{tagId}"
/api/v2/tag/{tagId}/transactions:
$ref: "./p-transaction.yml#/paths/~1tag~1{tagId}~1transactions"
/api/ping:
$ref: "./p-ping.yml#/paths/~1ping"

Expand Down
42 changes: 42 additions & 0 deletions p-transaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,51 @@ paths:
description: "Bad request. Check your input data."
"403":
description: "Bad license. Either server or request does not contain valid license."
/tag/{tagId}/transactions:
get:
parameters:
- in: path
name: tagId
schema:
type: integer
format: uuid
required: true
description: Tag id
summary: Get transactions by tag
tags:
- transaction
responses:
"200":
description: "Transactions list by tag"
content:
application/json:
schema:
$ref: '#/components/schemas/ListTransactionsByTagResponse'
"400":
description: "Bad request. Check your input data."
"403":
description: "Bad license. Either server or request does not contain valid license."

components:
schemas:
ListTransactionsByTagResponse:
type: array
items:
$ref: '#/components/schemas/GetTransactionsByTagResponse'
GetTransactionsByTagResponse:
type: object
properties:
id:
type: integer
format: uuid
description: "Transaction id"
state:
type: integer
description: "Transaction status"
updatedAt:
type: string
format: 'date-time'
description: "Last time updated"
TransactionProcessGetResponse:
type: object
properties:
Expand Down

0 comments on commit d907735

Please sign in to comment.