diff --git a/backend.yml b/backend.yml index e61a417..40ba7df 100644 --- a/backend.yml +++ b/backend.yml @@ -46,6 +46,8 @@ paths: schema: $ref: '#/components/schemas/ApiResponse' delete: + security: + - bearerAuth: [] tags: - backend summary: Logs out a user @@ -62,6 +64,8 @@ paths: /api/auth/me: get: + security: + - bearerAuth: [] tags: - backend summary: Current user @@ -82,6 +86,8 @@ paths: /api/lists: get: + security: + - bearerAuth: [] tags: - backend summary: Gets all lists @@ -97,6 +103,8 @@ paths: /api/lists/{listid}: get: + security: + - bearerAuth: [] tags: - backend summary: Gets a single lists @@ -131,6 +139,8 @@ paths: /api/items/{itemid}: get: + security: + - bearerAuth: [] tags: - backend summary: Gets data of an item @@ -152,6 +162,11 @@ paths: $ref: '#/components/schemas/Item' components: + securitySchemes: + bearerAuth: + type: http + scheme: bearer + bearerFormat: Token schemas: MainList: type: object