Skip to content

Commit

Permalink
SP-16044: Add get transactions by tag endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
GubinAlexander committed Jun 12, 2024
1 parent 722ca7e commit 70efddf
Show file tree
Hide file tree
Showing 2 changed files with 40 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
38 changes: 38 additions & 0 deletions p-transaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,47 @@ 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/GetTransactionsByTagResponse'
"400":
description: "Bad request. Check your input data."
"403":
description: "Bad license. Either server or request does not contain valid license."

components:
schemas:
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 70efddf

Please sign in to comment.