Skip to content

Commit

Permalink
deploy: e803f36
Browse files Browse the repository at this point in the history
  • Loading branch information
dborovcanin committed Apr 10, 2024
1 parent bd9dade commit d736867
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apis/api/openapi/invitations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ tags:
paths:
/invitations:
post:
operationId: sendInvitation
tags:
- Invitations
summary: Send invitation
Expand All @@ -45,6 +46,8 @@ paths:
description: Failed due to malformed JSON.
"401":
description: Missing or invalid access token provided.
"404":
description: A non-existent entity request.
"409":
description: Failed due to using an existing identity.
"415":
Expand All @@ -53,6 +56,7 @@ paths:
$ref: "#/components/responses/ServiceError"

get:
operationId: listInvitations
tags:
- Invitations
summary: List invitations
Expand Down Expand Up @@ -89,6 +93,7 @@ paths:

/invitations/accept:
post:
operationId: acceptInvitation
summary: Accept invitation
description: |
Current logged in user accepts invitation to join domain.
Expand All @@ -105,11 +110,14 @@ paths:
description: Failed due to malformed query parameters.
"401":
description: Missing or invalid access token provided.
"404":
description: A non-existent entity request.
"500":
$ref: "#/components/responses/ServiceError"

/invitations/{user_id}/{domain_id}:
get:
operationId: getInvitation
summary: Retrieves a specific invitation
description: |
Retrieves a specific invitation that is identifier by the user ID and domain ID.
Expand All @@ -135,6 +143,7 @@ paths:
$ref: "#/components/responses/ServiceError"

delete:
operationId: deleteInvitation
summary: Deletes a specific invitation
description: |
Deletes a specific invitation that is identifier by the user ID and domain ID.
Expand Down Expand Up @@ -452,6 +461,12 @@ components:
application/json:
schema:
$ref: "#/components/schemas/Invitation"
links:
delete:
operationId: deleteInvitation
parameters:
user_id: $response.body#/user_id
domain_id: $response.body#/domain_id

InvitationPageRes:
description: Data retrieved.
Expand Down

0 comments on commit d736867

Please sign in to comment.