-
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: Dismiss duplicates bulk endpoint in platform (#382)
- Loading branch information
1 parent
9d3586c
commit e11650e
Showing
4 changed files
with
177 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
56 changes: 56 additions & 0 deletions
56
src/spender/paths/spender@expenses@dismiss_duplicates@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,56 @@ | ||
post: | ||
tags: | ||
- Expenses | ||
summary: Dismiss Duplicate expenses | ||
description: | | ||
This API helps dismissing similar expenses as a duplicates. | ||
operationId: dismiss_duplicates_bulk_post | ||
requestBody: | ||
required: True | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
additionalProperties: False | ||
required: | ||
- data | ||
properties: | ||
data: | ||
type: array | ||
items: | ||
$ref: '../../components/schemas/expense.yaml#/spender_expense_dismiss_duplicates_in' | ||
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: string | ||
nullable: True | ||
'401': | ||
description: Unauthorised request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/401.yaml" | ||
'403': | ||
description: Forbidden | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/403.yaml" | ||
|
||
|