Commit ea2f57e138e309ac4323d70221d8ef01cc9f33c1
0 parents
Test API
Showing
1 changed file
with
31 additions
and
0 deletions
Show diff stats
1 | +++ a/api.raml | |
... | ... | @@ -0,0 +1,31 @@ |
1 | +#%RAML 1.0 | |
2 | +title: API d'Etunicorn | |
3 | +baseUri: https://etunicorn.plil.net/{version}/ | |
4 | +version: v1 | |
5 | +/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 | + | |
0 | 32 | \ No newline at end of file | ... | ... |