forked from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Manejo de tiempo agotado con modal #96
Closed
Changes from 61 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
f179ce6
Added fetch-depth 0
labra ff5fadb
Update sonar-project.properties
ExarcaFidalgo 3a7d874
Update README.md
ExarcaFidalgo f67f94d
Update sonar-project.properties
ExarcaFidalgo caa267f
Update README.md
ExarcaFidalgo 72fedaf
Fixing some old-fashioned code in the actions and README.md file
augustocristian 09590d8
0 por es6b
ExarcaFidalgo d7948e9
0 por es6c
ExarcaFidalgo 2f84702
Merge pull request #3 from Arquisoft/dev_fixcomposeandactions
pglez82 d658968
Adding the .env to the service deployment
augustocristian d6ec049
Merge pull request #4 from Arquisoft/ft_Addenvfiledeployment
augustocristian f7c5893
Adding -O to wget to overwrite existing files
augustocristian 88c299b
Changed welcome message and some devDependencies
labra fa9aec3
Merge branch 'master' of https://github.com/Arquisoft/wiq_0
labra dbaea69
Merge branch 'master' into master
ExarcaFidalgo dc74163
Revert "Merge branch 'master' into master"
ExarcaFidalgo a50371b
Merge branch 'master' into master
ExarcaFidalgo e049274
Revert "Merge branch 'master' of https://github.com/Arquisoft/wiq_0"
ExarcaFidalgo e9278f2
Expiando mis pecados
ExarcaFidalgo 1f0cbfb
Minor fixes to tear-down the container
augustocristian f4f8efb
Merge pull request #6 from Arquisoft/ft_solveproblemcompose
labra dce1d3f
Merge branch 'develop', remote-tracking branch 'origin' into pablo
uo264915 304dd15
Adding --pull always to the deployment command to force image downloa…
augustocristian 227b3f5
Added OpenAPI specification for wiq_0 gateway service (#17)
augustocristian 6e9d94e
Sync package.json with package-lock.json (#18)
augustocristian 789b3f2
Adding some examples to the OpenAPI spec (#19)
augustocristian 7c88c7e
Fixing OpenAPI E2E Tests
pglez82 7b11b83
Merge remote-tracking branch 'origin' into pablo
uo264915 98b87b9
:sparkles: Temporizador añadido con cuenta atrás de 20 segundos
coral2742 997e0bc
Small local changes
labra 8d15121
Sincronización con develop (24 Marzo)
uo264915 fef70b4
Merge de develop
uo264915 492a216
[APP] Implementación interfaz de MainPage Arquisoft/wiq_es2b#76
uo264915 d9d57fb
Sincronización con develop (28 Marzo)
uo264915 cbc574d
cambios css
uo264915 2bae69f
Arreglando fallo bucle infinito en peticiones
baraganio fc2de3a
Merge branch 'develop' into pablo
uo264915 78acdb3
Finalizacion del juego y mostrar puntuacion
uo264915 ada6418
Merge pull request #89 from Arquisoft/pablo
uo264915 2254984
Merge branch 'develop' into ray
UO290054 f540641
Merge branch 'develop' into ray
UO290054 7d11d8a
Historial de usuario implementado + errores varios
UO290054 e80c658
Implementación CSS de HistoricalData y otros cambios
uo264915 b33132f
Ajustes Histotico del usuario
UO290054 3613362
Merge branch 'master' into ray
UO290054 e197ad2
Merge pull request #92 from Arquisoft/ray
UO290054 2c0cf10
:sparkles: Modificaciones del reloj de juego
coral2742 f71db54
Sincronizacion con master (1 abril)
uo264915 11ffd55
:sparkles: Temporizador añadido
coral2742 0e50e0e
:sparkles: Especificación de API con Openapi
coral2742 b779725
Merge from develop
baraganio f86c7a3
Arreglando las respuestas que no traen nombre (traen la etiqueta Q1234)
baraganio af050db
Merge branch 'develop' of https://github.com/Arquisoft/wiq_es2b into …
uo264915 3cc157c
Resolucion de problemas fin de partida
uo264915 92cce23
Resolucion problemas fin de partida
uo264915 c7052a5
Merge pull request #95 from Arquisoft/pablo
uo264915 e0cdd4f
sparkles: Cambios en temporizador
coral2742 3e8ddb7
:sparkles: Pequeños cambios en temporizador
UO285240 12687e4
Merge branch 'develop' into coral
UO285240 d0fb796
:sparkles: Temporizador solucionado
UO285240 838e093
:sparkles: 6 preguntas por partida
UO285240 4983926
:sparkles: Pregunta incorrecta si pasa de tiempo
UO285240 f2f4236
:sparkles: Manejo de tiempo agotado con modal
coral2742 4573723
Cambiando alguna peticiones post por get
baraganio 1d8a5fa
Merge con develop
baraganio 597fe01
Merge con develop
baraganio 668b401
Update 06_runtime_view
baraganio 881154f
Merge pull request #98 from Arquisoft/carlos
baraganio cfd29cd
Arreglos de warnings
uo264915 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,233 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Gatewayservice API | ||
description: Gateway OpenAPI specification. | ||
version: 0.2.0 | ||
servers: | ||
- url: http://localhost:8000 | ||
description: Development server | ||
- url: http://SOMEIP:8000 | ||
description: Production server | ||
paths: | ||
/adduser: | ||
post: | ||
summary: Add a new user to the database. | ||
operationId: addUser | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
username: | ||
type: string | ||
description: User ID. | ||
example: student | ||
password: | ||
type: string | ||
description: User password. | ||
example: pass | ||
responses: | ||
'200': | ||
description: User added successfully. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
username: | ||
type: string | ||
description: User ID | ||
password: | ||
type: string | ||
description: Hashed password | ||
example: $2b$10$ZKdNYLWFQxzt5Rei/YTc/OsZNi12YiWz30JeUFHNdAt7MyfmkTuvC | ||
_id: | ||
type: string | ||
description: Identification | ||
example: 65f756db3fa22d227a4b7c7d | ||
createdAt: | ||
type: string | ||
description: Creation date. | ||
example: '2024-03-17T20:47:23.935Z' | ||
___v: | ||
type: integer | ||
example: '0' | ||
'400': | ||
description: Failed to add user. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
description: Error information. | ||
example: getaddrinfo EAI_AGAIN mongodb | ||
/health: | ||
get: | ||
summary: Check the health status of the service. | ||
operationId: checkHealth | ||
responses: | ||
'200': | ||
description: Service is healthy. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
status: | ||
type: string | ||
description: Health status. | ||
example: OK | ||
/login: | ||
post: | ||
summary: Log in to the system. | ||
operationId: loginUser | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
username: | ||
type: string | ||
description: User ID. | ||
example: student | ||
password: | ||
type: string | ||
description: User password. | ||
example: pass | ||
responses: | ||
'200': | ||
description: Login successful. Returns user token, username, and creation date. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
token: | ||
type: string | ||
description: User token. | ||
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NWY3NTZkYjNmYTIyZDIyN2E0YjdjN2QiLCJpYXQiOjE3MTA3MDg3NDUsImV4cCI6MTcxMDcxMjM0NX0.VMG_5DOyQ4GYlJQRcu1I6ICG1IGzuo2Xuei093ONHxw | ||
username: | ||
type: string | ||
description: Username. | ||
example: student | ||
createdAt: | ||
type: string | ||
description: Creation date. | ||
example: '2024-03-17T20:47:23.935Z' | ||
'401': | ||
description: Invalid credentials. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
description: Shows the error info.. | ||
example: Invalid credentials | ||
'500': | ||
description: Internal server error. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
description: Error information. | ||
example: Internal Server Error | ||
/addgame: | ||
post: | ||
summary: Add a new game to the database. | ||
operationId: addGame | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
gameName: | ||
type: string | ||
description: Name of the game. | ||
example: Game1 | ||
responses: | ||
'200': | ||
description: Game added successfully. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
description: Message indicating success. | ||
example: Game added successfully. | ||
'400': | ||
description: Failed to add game. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
description: Error information. | ||
example: Game already exists. | ||
|
||
|
||
/getgamehistory/{username}: | ||
get: | ||
summary: Get game history for a specific user. | ||
operationId: getGameHistory | ||
parameters: | ||
- name: username | ||
in: path | ||
description: Username for which to retrieve game history. | ||
required: true | ||
schema: | ||
type: string | ||
example: student | ||
responses: | ||
'200': | ||
description: Game history retrieved successfully. | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
gameId: | ||
type: string | ||
description: ID of the game. | ||
example: 12345 | ||
gameName: | ||
type: string | ||
description: Name of the game. | ||
example: Game1 | ||
score: | ||
type: integer | ||
description: Score achieved in the game. | ||
example: 100 | ||
datePlayed: | ||
type: string | ||
description: Date when the game was played. | ||
example: '2024-03-20T15:00:00Z' | ||
'400': | ||
description: Failed to retrieve game history. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
description: Error information. | ||
example: User not found. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / SonarCloud
Server-side requests should not be vulnerable to forging attacks