From b8824e3a15d03b3d99bbe6d537a22916de82a4bf Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 28 Jan 2017 14:03:11 +0100 Subject: [PATCH] Avec le login, cette fois --- api.raml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/api.raml b/api.raml index 9047682..18b519e 100644 --- a/api.raml +++ b/api.raml @@ -3,7 +3,29 @@ title: API d'Etunicorn baseUri: https://etunicorn.plil.net/{version}/ version: v1 /login: - + post: + description: Instancie une nouvelle connexion + queryParameters: + login: + displayName: Login Polytech + type: string + required: true + password: + displayName: Mot de passe Polytech + type: string + required: false + responses: + 200: + description: Authentification réussie + body: + application/json: + example: + { + "token": "ooT6zahdura7vaethuiph1ugiph6co", + "expire": 1485607703 + } + 401: + description: Authentication échouée /personne: get: description: Obtenir la liste des persones -- libgit2 0.21.2