From 1942fb0981f419d1d007fe1427f6d5cc1d4d8dc9 Mon Sep 17 00:00:00 2001 From: Aditya Agrawal Date: Wed, 18 Oct 2023 11:23:58 +0530 Subject: [PATCH] removed spender expenses delete api (#375) * removed api * Auto generate API docs --------- Co-authored-by: Siva --- reference/spender.yaml | 146 --------------------------------------- src/spender/openapi.yaml | 4 -- 2 files changed, 150 deletions(-) diff --git a/reference/spender.yaml b/reference/spender.yaml index 8013cb144..72c8371ab 100644 --- a/reference/spender.yaml +++ b/reference/spender.yaml @@ -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: @@ -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: diff --git a/src/spender/openapi.yaml b/src/spender/openapi.yaml index 5a11f30a6..297d0a65e 100644 --- a/src/spender/openapi.yaml +++ b/src/spender/openapi.yaml @@ -115,10 +115,6 @@ paths: $ref: 'paths/spender@departments.yaml' /spender/expenses: $ref: 'paths/spender@expenses.yaml' - /spender/expenses/delete: - $ref: 'paths/spender@expenses@delete.yaml' - /spender/expenses/delete/bulk: - $ref: 'paths/spender@expenses@delete@bulk.yaml' /spender/expenses/add_comment: $ref: 'paths/spender@expenses@add_comment.yaml' /spender/expenses/attach_receipt: