-
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: Docs for
POST admin/corporate_card_transactions/reassign/bulk
(…
…#550) * feat: Add POST admin/corporate_card_transactions/reassign/bulk API Docs * Auto generate API docs --------- Co-authored-by: Siva <siva@fylehq.com>
- Loading branch information
1 parent
8c242fb
commit e7c6385
Showing
4 changed files
with
140 additions
and
0 deletions.
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
53 changes: 53 additions & 0 deletions
53
src/admin/paths/admin@corporate_card_transactions@reassign@bulk.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,53 @@ | ||
post: | ||
tags: | ||
- Corporate Card Transactions | ||
summary: Bulk reassign corporate card transactions | ||
description: | | ||
Reassign corporate card transactions to users in bulk. | ||
operationId: corporate_card_transactions_reassign_bulk | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
data: | ||
type: array | ||
items: | ||
$ref: '../../components/schemas/corporate_card_transaction.yaml#/corporate_card_transaction_reassign_in' | ||
required: | ||
- data | ||
responses: | ||
'200': | ||
description: OK | ||
'400': | ||
description: Bad request | ||
content: | ||
application/json: | ||
schema: | ||
oneOf: | ||
- $ref: '../../components/schemas/bulk_error.yaml' | ||
- type: object | ||
properties: | ||
error: | ||
type: string | ||
nullable: true | ||
message: | ||
type: string | ||
nullable: true | ||
data: | ||
type: object | ||
nullable: true | ||
'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' |
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