-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: add stats endpoint for personal card transactions (#571)
* Feat: add stats endpoint for personal card transactions * Auto generate API docs --------- Co-authored-by: Siva <siva@fylehq.com>
- Loading branch information
1 parent
fcacc99
commit 5cb980a
Showing
4 changed files
with
174 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/spender/paths/spender@personal_card_transactions@stats.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
post: | ||
tags: | ||
- Personal Card Transactions | ||
summary: Personal Card Transaction Stats | ||
description: | | ||
Personal Card Transaction Stats | ||
operationId: personal_card_transactions_stats | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
additionalProperties: False | ||
required: | ||
- data | ||
properties: | ||
data: | ||
$ref: '../../components/schemas/personal_card_transaction.yaml#/personal_card_transactions_stats_in' | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
additionalProperties: False | ||
properties: | ||
data: | ||
$ref: '../../components/schemas/personal_card_transaction.yaml#/personal_card_transactions_stats_out' | ||
'400': | ||
description: Bad request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas/400.yaml | ||
'401': | ||
description: Unauthorized request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas/401.yaml | ||
'403': | ||
description: Forbidden | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas/403.yaml | ||
'404': | ||
description: Not Found | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../components/schemas/404.yaml' |