Skip to content

Commit

Permalink
removed spender expenses delete api (#375)
Browse files Browse the repository at this point in the history
* removed api

* Auto generate API docs

---------

Co-authored-by: Siva <[email protected]>
  • Loading branch information
aditya999123 and snarayanank2 authored Oct 18, 2023
1 parent 7580f67 commit 1942fb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 150 deletions.
146 changes: 0 additions & 146 deletions reference/spender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2074,41 +2074,6 @@ components:
$ref: '#/components/schemas/locations'
custom_fields:
$ref: '#/components/schemas/custom_fields'
expense_delete_in:
type: object
required:
- id
properties:
id:
$ref: '#/components/schemas/id_string'
bulk_error:
type: object
properties:
error:
type: string
example: BulkError
message:
type: string
nullable: true
data:
type: array
items:
type: object
properties:
row:
type: integer
description: |
This holds the info of which row contains bad data.
key:
oneOf:
- type: string
- type: integer
description: |
This helps in identifying the error by unique key.
message:
type: string
description: |
This explains what the error is in `human readable` text
expense_add_comment_action_in:
type: object
required:
Expand Down Expand Up @@ -6784,117 +6749,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/403'
/spender/expenses/delete:
post:
tags:
- Expenses
summary: Delete an expense
description: |
Delete an expense.
operationId: expenses_delete
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/expense_delete_in'
responses:
'200':
description: The expense was deleted successfully
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- data
properties:
data:
$ref: '#/components/schemas/expense_out'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/400'
'401':
description: Unauthorized request
content:
application/json:
schema:
$ref: '#/components/schemas/401'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/403'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/404'
/spender/expenses/delete/bulk:
post:
tags:
- Expenses
summary: Delete Expenses in Bulk
description: |
Delete multiple expenses in bulk.
operationId: expenses_delete_bulk
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/expense_delete_in'
responses:
'200':
description: The expenses were deleted successfully
'400':
description: Bad request
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/bulk_error'
- 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'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/403'
/spender/expenses/add_comment:
post:
tags:
Expand Down
4 changes: 0 additions & 4 deletions src/spender/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ paths:
$ref: 'paths/[email protected]'
/spender/expenses:
$ref: 'paths/[email protected]'
/spender/expenses/delete:
$ref: 'paths/spender@[email protected]'
/spender/expenses/delete/bulk:
$ref: 'paths/spender@expenses@[email protected]'
/spender/expenses/add_comment:
$ref: 'paths/spender@expenses@add_comment.yaml'
/spender/expenses/attach_receipt:
Expand Down

0 comments on commit 1942fb0

Please sign in to comment.