From ea2f57e138e309ac4323d70221d8ef01cc9f33c1 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 28 Jan 2017 12:33:16 +0100 Subject: [PATCH] Test API --- api.raml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+), 0 deletions(-) create mode 100644 api.raml 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