Created
January 29, 2018 14:54
-
-
Save elgrim312/539bcfde6ca18d444d0a5c9ebfc4f371 to your computer and use it in GitHub Desktop.
Welcome file
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
# jo-hetic documentation | |
### création d'un utilisateur | |
route: /api/user_create | |
arguments: { | |
"firstname" : "eazeez", | |
"lastname" : "eazezeaaz", | |
"email" : "[email protected]", | |
"plainPassword" : "Elgrim312", | |
"pseudo" : "flopeur", | |
"picture": "eeazea.png" | |
} | |
retour: {"data":{},"message":"User is created"} | |
### authentification d'un utilisateur | |
**ATTENTION BIEN RÉCUPÉRER LE X-TOKEN** | |
route: /api/auth-token | |
arguments: { | |
"login": "[email protected]", | |
"password" : "Elgrim312" | |
} | |
retour: { | |
"id": 18, | |
"value": "+9suvdQ5IVkmnVIR7b/k5zyrmbXkPiDlXE5jCp1lEeobxkd2jWB5EYauX/bUqG6RShc=", | |
"createdAt": { | |
"date": "2018-01-29 14:25:54.012450", | |
"timezone_type": 3, | |
"timezone": "Europe/Berlin" | |
}, | |
"user": { | |
"id": 1, | |
"firstname": "Alexandre", | |
"lastname": "Vagnair", | |
"email": "[email protected]" | |
} | |
} | |
### rentrer dans un lobby | |
route: /api/lobby | |
headers: {X-Auth-Token: Your Token} | |
arguments: { | |
"user_id" : "your user id", | |
"game_id": "l'id du jeu souhaité" | |
} | |
retours (1) : { | |
"data": "", | |
"message": "You are added" | |
} | |
retours (2) : { | |
"data": "", | |
"message": "You are already added" | |
} | |
retours (3) : { | |
"data": "", | |
"message": "Go to the game" | |
} | |
### fin de partie | |
route: /api/end_game | |
headers: {X-Auth-Token: Your Token} | |
arguments: { | |
"game_history": "1", | |
"user_id": "1", | |
"score" : "20000" | |
} | |
retours: { | |
"data": "", | |
"message": "score saving" | |
} | |
### modifier utilisateur | |
route : /api/user_update | |
headers : {X-Auth-Token: Your Token} | |
arguments : { | |
"firstname": "Alexandre", | |
"lastname": "Vagnair", | |
"pseudo": "elgrim312", | |
"email" : "[email protected]", | |
"picture": "eazeaze.jpg" | |
} | |
retour: { | |
"data": {}, | |
"message": "User update" | |
} | |
### classement score | |
route : /api/ranking | |
headers : {X-Auth-Token: Your Token} | |
arguments: { | |
"gameId": "1" | |
} | |
retour: { | |
ezaeaeazeae | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment