diff --git a/api.raml b/api.raml new file mode 100644 index 0000000..a8d1e86 --- /dev/null +++ b/api.raml @@ -0,0 +1,31 @@ +#%RAML 1.0 +title: API d'Etunicorn +baseUri: https://etunicorn.plil.net/{version}/ +version: v1 +/personne: + get: + description: Obtenir la liste des persones + responses: + 200: + body: + application/json: + example: + [ + { + "idPersonne": 42, + "idCarte": "AAAAA", + "naissance": "1997-02-14", + "solde": 1337, + "loginPoly": "gbontoux" + } + ] + put: + description: Ajoute un nouvel étudiant + queryParameters: + idCarte: + displayName: ID de la carte NFC + type: string + required: false + naissance: + displayName: Date de naissance + \ No newline at end of file -- libgit2 0.21.2