Commit b8824e3a15d03b3d99bbe6d537a22916de82a4bf
1 parent
509e1d6e
Avec le login, cette fois
Showing
1 changed file
with
23 additions
and
1 deletions
Show diff stats
api.raml
... | ... | @@ -3,7 +3,29 @@ title: API d'Etunicorn |
3 | 3 | baseUri: https://etunicorn.plil.net/{version}/ |
4 | 4 | version: v1 |
5 | 5 | /login: |
6 | - | |
6 | + post: | |
7 | + description: Instancie une nouvelle connexion | |
8 | + queryParameters: | |
9 | + login: | |
10 | + displayName: Login Polytech | |
11 | + type: string | |
12 | + required: true | |
13 | + password: | |
14 | + displayName: Mot de passe Polytech | |
15 | + type: string | |
16 | + required: false | |
17 | + responses: | |
18 | + 200: | |
19 | + description: Authentification réussie | |
20 | + body: | |
21 | + application/json: | |
22 | + example: | |
23 | + { | |
24 | + "token": "ooT6zahdura7vaethuiph1ugiph6co", | |
25 | + "expire": 1485607703 | |
26 | + } | |
27 | + 401: | |
28 | + description: Authentication échouée | |
7 | 29 | /personne: |
8 | 30 | get: |
9 | 31 | description: Obtenir la liste des persones | ... | ... |