Security
RESTful API is dependent upon Hypertext Transfer Protocol (HTTP) for security. Token creation is required for authentication.
The following HTTP features are used for RESTful API security:
- HTTP or HTTPS
- Provides an encrypted HTTP channel between the client and the server.
- HTTP basic authentication
- Carries client provided credentials to the server.
Creating a token
You must create (POST) a token before other RESTful API operations can be initiated.
About this task
Note: After the token is created, all subsequent
requests must include the following in the header:
X-Auth-Token:{token_name}
Procedure
Results
{ "server" : { "status" : "ok" , "code" : "200" , "message" : "Operation done successfully." } , "token" : { "token" : "ddb1743a" , "expired_time" : "2014-08-25T03:28:15-0700" , "max_idle_interval" : "1800000" } }