Skip to content

Commit

Permalink
add operationId's to api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
KavikaPalletenne committed Apr 14, 2024
1 parent d6d581a commit 37595e4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions backend/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ servers:
paths:
/auth/logout:
post:
operationId: logout
description: Invalidates current token.
tags:
- Auth
Expand All @@ -26,6 +27,7 @@ paths:
example: Successfully logged out.
/user:
get:
operationId: getLoggedInUser
description: Returns info about currently logged in user.
tags:
- User
Expand Down Expand Up @@ -68,6 +70,7 @@ paths:
type: string
example: Not logged in.
delete:
operationId: deleteUserById
description: Deletes currently logged in user.
tags:
- User
Expand Down Expand Up @@ -101,6 +104,7 @@ paths:
example: Not logged in.
/user/{id}:
get:
operationId: getUserById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -149,6 +153,7 @@ paths:
example: "Insufficient permissions"
/user/name:
patch:
operationId: updateUserName
description: Updates currently logged in user's name.
tags:
- User
Expand Down Expand Up @@ -182,6 +187,7 @@ paths:
example: Not logged in.
/user/zid:
patch:
operationId: updateUserZid
description: Updates currently logged in user's zID.
tags:
- User
Expand Down Expand Up @@ -215,6 +221,7 @@ paths:
example: Not logged in.
/user/degree:
patch:
operationId: updateUserDegree
description: Updates currently logged in user's degree.
tags:
- User
Expand Down Expand Up @@ -251,6 +258,7 @@ paths:
example: Not logged in.
/organisation:
post:
operationId: createOrganisation
description: Creates a new organisation.
tags:
- Organisation
Expand Down Expand Up @@ -289,6 +297,7 @@ paths:
example: Unauthorized
/organisation/{id}:
get:
operationId: getOrganisationById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -321,6 +330,7 @@ paths:
type: string
example: 2024-02-10T18:25:43.511Z
delete:
operationId: deleteOrganisationById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -353,6 +363,7 @@ paths:
example: Unauthorized
/organisation/{id}/campaigns:
get:
operationId: getOrganisationCampaignsById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -397,6 +408,7 @@ paths:
example: 2024-04-15T18:25:43.511Z
/organisation/{id}/logo:
patch:
operationId: updateOrganisationLogoById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -439,6 +451,7 @@ paths:
example: Unauthorized
/organisation/{id}/members:
get:
operationId: getOrganisationMembersById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -479,6 +492,7 @@ paths:
type: string
example: Unauthorized
put:
operationId: updateOrganisationMembersById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -533,6 +547,7 @@ paths:
example: Unauthorized
/organisation/{id}/campaign:
post:
operationId: createCampaign
parameters:
- name: id
in: path
Expand Down Expand Up @@ -583,6 +598,7 @@ paths:
example: Unauthorized
/campaign:
get:
operationId: getAllCampaigns
description: Returns all active campaigns.
tags:
- Campaign
Expand Down Expand Up @@ -626,6 +642,7 @@ paths:
example: 2024-04-15T18:25:43.511Z
/campaign/{id}:
get:
operationId: getCampaignById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -671,6 +688,7 @@ paths:
type: string
example: 2024-04-15T18:25:43.511Z
put:
operationId: updateCampaignById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -729,6 +747,7 @@ paths:
type: string
example: Unauthorized
delete:
operationId: deleteCampaignById
parameters:
- name: id
in: path
Expand Down Expand Up @@ -761,6 +780,7 @@ paths:
example: Unauthorized
/campaign/{id}/banner:
patch:
operationId: updateCampaignBannerById
parameters:
- name: id
in: path
Expand Down

0 comments on commit 37595e4

Please sign in to comment.