Commit 509e1d6eda12ceff44470af76512eaf8094c96db
1 parent
ea2f57e1
API: Login
Showing
1 changed file
with
28 additions
and
26 deletions
Show diff stats
api.raml
@@ -2,30 +2,32 @@ | @@ -2,30 +2,32 @@ | ||
2 | title: API d'Etunicorn | 2 | title: API d'Etunicorn |
3 | baseUri: https://etunicorn.plil.net/{version}/ | 3 | baseUri: https://etunicorn.plil.net/{version}/ |
4 | version: v1 | 4 | version: v1 |
5 | +/login: | ||
6 | + | ||
5 | /personne: | 7 | /personne: |
6 | - get: | ||
7 | - description: Obtenir la liste des persones | ||
8 | - responses: | ||
9 | - 200: | ||
10 | - body: | ||
11 | - application/json: | ||
12 | - example: | ||
13 | - [ | ||
14 | - { | ||
15 | - "idPersonne": 42, | ||
16 | - "idCarte": "AAAAA", | ||
17 | - "naissance": "1997-02-14", | ||
18 | - "solde": 1337, | ||
19 | - "loginPoly": "gbontoux" | ||
20 | - } | ||
21 | - ] | ||
22 | - put: | ||
23 | - description: Ajoute un nouvel étudiant | ||
24 | - queryParameters: | ||
25 | - idCarte: | ||
26 | - displayName: ID de la carte NFC | ||
27 | - type: string | ||
28 | - required: false | ||
29 | - naissance: | ||
30 | - displayName: Date de naissance | ||
31 | - | ||
32 | \ No newline at end of file | 8 | \ No newline at end of file |
9 | + get: | ||
10 | + description: Obtenir la liste des persones | ||
11 | + responses: | ||
12 | + 200: | ||
13 | + body: | ||
14 | + application/json: | ||
15 | + example: | ||
16 | + [ | ||
17 | + { | ||
18 | + "idPersonne": 42, | ||
19 | + "idCarte": "AAAAA", | ||
20 | + "naissance": "1997-02-14", | ||
21 | + "solde": 1337, | ||
22 | + "loginPoly": "gbontoux" | ||
23 | + } | ||
24 | + ] | ||
25 | + put: | ||
26 | + description: Ajoute un nouvel étudiant | ||
27 | + queryParameters: | ||
28 | + idCarte: | ||
29 | + displayName: ID de la carte NFC | ||
30 | + type: string | ||
31 | + required: false | ||
32 | + naissance: | ||
33 | + displayName: Date de naissance | ||
34 | + |