From 28ae3bf2187155a1d475b11c5c26b2de134cb1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20ARNAUDEAU?= Date: Thu, 26 Jan 2017 17:30:23 +0100 Subject: [PATCH] TG-35 : MAJ des interfaces --- API_Interfaces.txt | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/API_Interfaces.txt b/API_Interfaces.txt index 825150a..0219930 100644 --- a/API_Interfaces.txt +++ b/API_Interfaces.txt @@ -2,9 +2,25 @@ LoginAPI (api/login) ####################### POST -> Authentication method with login/password - login : User login - password : User password + In: + login : User login + password : User password + Out: + 200 -> AUTH_RESULT = "OK" : Authentication sucessful + 401 -> AUTH_RESULT = "AUTHENTICATION_FAILURE" : Wrong login/password + 403 -> AUTH_RESULT = "NOT_ALLOWED" : User is not allowed for this application + 201 -> AUTH_RESULT = "ALREADY_LOGGED" : A user is already logged on this session DELETE -> Logout current user + Out: + 200 -> AUTH_RESULT = "OK" : Logout sucessful + + +####################### +UserInfoAPI (api/userInfo) +####################### +GET -> Get the current logged user, return None if no one is connected + Out: + 200 -> USER = |None : Dictionnary containing user infos or None