-
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: API specs for spender/expenses/check_mandatory_fields/bulk (#592)
* feat: API specs for spender/expenses/check_mandatory_fields/bulk * Auto generate API docs * fixed output type to object * Auto generate API docs --------- Co-authored-by: Siva <[email protected]>
- Loading branch information
1 parent
f7a2a62
commit ea87b4f
Showing
4 changed files
with
222 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
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 |
---|---|---|
|
@@ -256,6 +256,8 @@ paths: | |
$ref: paths/spender@automations@report_submissions@next_at.yaml | ||
/spender/expenses/check_mandatory_fields: | ||
$ref: paths/spender@expenses@check_mandatory_fields.yaml | ||
/spender/expenses/check_mandatory_fields/bulk: | ||
$ref: paths/spender@expenses@check_mandatory_fields_bulk.yaml | ||
/spender/expenses/dismiss_duplicates/bulk: | ||
$ref: paths/spender@expenses@[email protected] | ||
/spender/expenses/duplicate_sets: | ||
|
58 changes: 58 additions & 0 deletions
58
src/spender/paths/spender@expenses@check_mandatory_fields_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,58 @@ | ||
post: | ||
tags: | ||
- Expenses | ||
summary: Check multiple expense for missing mandatory fields in bulk. | ||
description: | | ||
Before updating multiple [expense objects](https://docs.fylehq.com/docs/fyle-platform-docs/b5ec89140e06b-create-or-update-expense) | ||
into Fyle, based on the business requirements, you might want to check if all the mandatory fields set up by your organization are added. | ||
This endpoint allows you to validate multiple expense objects in a single request by passing an array of expense objects along with some extra optional fields documented below. | ||
operationId: check_mandatory_fields_bulk_post | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
additionalProperties: False | ||
required: | ||
- data | ||
properties: | ||
data: | ||
$ref: '../../components/schemas/expense.yaml#/spender_expense_check_mandatory_fields_bulk_in' | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
additionalProperties: False | ||
required: | ||
- data | ||
properties: | ||
data: | ||
$ref: ../../components/schemas/expense.yaml#/expense_check_mandatory_fields_bulk_out | ||
'401': | ||
description: Unauthorised request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../components/schemas/401.yaml' | ||
'400': | ||
description: Unauthorised request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../components/schemas/400.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' |