diff --git a/gatewayservice/openapi.yml b/gatewayservice/openapi.yml index bed78913..155a581f 100644 --- a/gatewayservice/openapi.yml +++ b/gatewayservice/openapi.yml @@ -99,12 +99,12 @@ paths: description: Service down security: - bearerAuth: [] - /friends/{friend_username}: + /friends/{username}: delete: summary: Delete a friend parameters: - in: path - name: friend_username + name: username schema: type: string required: true @@ -129,6 +129,31 @@ paths: description: Service down security: - bearerAuth: [] + get: + summary: Get friends of a user + parameters: + - in: path + name: username + schema: + type: string + required: true + description: The username of the user + responses: + '200': + description: Friends retrieved successfully + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Friend' + example: + username: 'user1' + friends: ['friend1', 'friend2'] + '400': + description: Error occurred while retrieving friends + '500': + description: Service down /verify: get: summary: Verify the authorization token @@ -326,12 +351,12 @@ paths: description: User not found '500': description: Error occurred while retrieving information about games - /games/{userId}: + /games/{user}: get: summary: Get participation of a user parameters: - in: path - name: userId + name: user schema: type: string required: true @@ -351,32 +376,7 @@ paths: description: No participation data found for the user. '500': description: Service down - /friends/{username}: - get: - summary: Get friends of a user - parameters: - - in: path - name: username - schema: - type: string - required: true - description: The username of the user - responses: - '200': - description: Friends retrieved successfully - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Friend' - example: - username: 'user1' - friends: ['friend1', 'friend2'] - '400': - description: Error occurred while retrieving friends - '500': - description: Service down + components: securitySchemes: bearerAuth: # Define un esquema de seguridad 'bearerAuth' para JWT