Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

E_Authentication

Natasa Bulatovic edited this page Feb 3, 2016 · 10 revisions

Authentication

Imeji REST API supports two methods of authentication:

  • Basic access authentication
  • API Key Authentication

###Basic access authentication You may authenticate each request by providing a username and a password in the Authorization field of your request header (see Basic access authentication (Client side)) e.g.

###APIKey authentication You may authenticate each request by providing the API Key in the Authorization field of your request header e.g.

   "Authorization: Bearer APIKey"

Generate/retrieve existing API Key

Posting (login method) the user credentials (username/password) responds with the generated API Key which is valid as long as the user is not explicitly logged-out. The generated API Key is invalidated by calling the logout method. If user did not have APIKey generated, a new one will be created upon calling this method.

Note: Logout Note

   "Authorization: Basic <base64-encoded-value-for-username-doublecolon-password>"

#V1 ##Path / ##Format Responses are in JSON format.

##POST /login

##POST /logout

Clone this wiki locally