Skip to content

Commit

Permalink
openapi.yml updated
Browse files Browse the repository at this point in the history
  • Loading branch information
UO287687 committed May 8, 2024
1 parent c80eb8a commit 8b7c34c
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions gatewayservice/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8b7c34c

Please sign in to comment.