Skip to content

Commit

Permalink
Merge branch 'mikehgrantsgov/3296-add-delete-opp-endpoint' of https:/…
Browse files Browse the repository at this point in the history
…/github.com/HHS/simpler-grants-gov into mikehgrantsgov/3296-add-delete-opp-endpoint
  • Loading branch information
mikehgrantsgov committed Dec 24, 2024
2 parents f54b7a4 + 73709b1 commit ab5a963
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions api/openapi.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,43 @@ paths:
'
security:
- ApiKeyAuth: []
/v1/users/{user_id}/saved-opportunities/{opportunity_id}:
delete:
parameters:
- in: path
name: user_id
schema:
type: string
required: true
- in: path
name: opportunity_id
schema:
type: integer
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/UserDeleteSavedOpportunityResponse'
description: Successful response
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Authentication error
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Not found
tags:
- User v1
summary: User Delete Saved Opportunity
security:
- ApiJwtAuth: []
openapi: 3.1.0
components:
schemas:
Expand Down Expand Up @@ -1963,6 +2000,19 @@ components:
type: integer
description: The HTTP status code
example: 200
UserDeleteSavedOpportunityResponse:
type: object
properties:
message:
type: string
description: The message to return
example: Success
data:
example: null
status_code:
type: integer
description: The HTTP status code
example: 200
securitySchemes:
ApiKeyAuth:
type: apiKey
Expand Down

0 comments on commit ab5a963

Please sign in to comment.