Skip to content

Instantly share code, notes, and snippets.

@richerlariviere
Last active November 21, 2016 21:01
Show Gist options
  • Save richerlariviere/542d8211abe065a7d61778039136079e to your computer and use it in GitHub Desktop.
Save richerlariviere/542d8211abe065a7d61778039136079e to your computer and use it in GitHub Desktop.

Spécifications

Connexion

Requête

Méthode: POST

URL: www.example.com/login

Paramètres:

Réponse

Si succès on retourne un user token de 32 caractères. Exemple:

{
  "user_token": "v77M6tM32XM9rKzK4u6xn569C2T6Ipnc"
}

Sinon retourner un code http pertinent exemple: un mauvais user/password lançerait une erreur 403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment