Storiq One API  v1.0
API for Storiq One
Authentication

Authentication

To authenticate a user, use POST method

path : /storiqone-backend/api/v1/auth/ 
Parameters
login: user login
password: user password
apikey: application key
Returns
HTTP status codes :
  • 201 Logged in
    User id is returned 
  • 400 Bad request - Either ; login and/or password and/or apikey missing
  • 401 Log in failed

with a token

To authenficate a user using a JSON Web Token, use POST method

path : /storiqone-backend/api/v1/auth/ 
Parameters
token: token containing an header, a payload and a signature
Returns
HTTP status codes :
  • 201 Logged in
    User id is returned 
  • 400 Bad request token is invalid (expired or missing informations)
  • 401 Log in failed (wrong id user or wrong signature)

Connection status

To check user's connection status, use GET method

path : /storiqone-backend/api/v1/auth/ 
Returns
HTTP status codes :
  • 200 Logged in
  • 401 Not logged in

Disconnection

To log out, use DELETE method

path : /storiqone-backend/api/v1/auth/ 
Returns
HTTP status codes :
  • 200 Logged out

token

Token creation

To generate a token (JWT), use POST method

path : /storiqone-backend/api/v1/auth/token/ 
Parameters
id: user id
password: user password (hash used as a key to create token's signature)
Returns
HTTP status codes :
  • 201 Token created
    Token is created