-
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 API spec for `POST corporate_card_transactions/expenses/sta…
…ts` API (#583)
- Loading branch information
1 parent
9c3900d
commit f22916c
Showing
4 changed files
with
251 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,7 +178,8 @@ paths: | |
$ref: paths/spender@corporate_cards.yaml | ||
/spender/corporate_card_transactions: | ||
$ref: paths/spender@corporate_card_transactions.yaml | ||
|
||
/spender/corporate_card_transactions/expenses/stats: | ||
$ref: paths/spender@corporate_card_transactions@[email protected] | ||
/spender/corporate_card_transactions/mark_personal: | ||
$ref: paths/spender@corporate_card_transactions@mark_personal.yaml | ||
# /spender/corporate_card_transactions/mark_personal/bulk: | ||
|
54 changes: 54 additions & 0 deletions
54
src/spender/paths/spender@corporate_card_transactions@[email protected]
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: | ||
- Corporate Card Transactions | ||
summary: Get corporate card transactions expenses stats | ||
description: | | ||
Get stats of corporate card transaction expenses grouped by card number and expense state. | ||
operationId: corporate_card_transactions_expenses_stats | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
additionalProperties: False | ||
required: | ||
- data | ||
properties: | ||
data: | ||
$ref: '../../components/schemas/corporate_card_transaction.yaml#/corporate_card_transactions_expenses_stats_in' | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
additionalProperties: False | ||
properties: | ||
data: | ||
$ref: '../../components/schemas/corporate_card_transaction.yaml#/corporate_card_transactions_expenses_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' |