Dispute API documentation
Authentication Service
The Authentication service provides a set of methods for obtaining, completing and validating the Dispute API working session.
Login Method
To create an API Dispute+ working session, call the Login method.
Method address:
/webapi/v1/Auth/Login
Request type: post
Key | Data type | Description |
---|---|---|
login | string | Login |
password | string | Password |
userKey | string | Unique User ID |
Key | Data type | Description |
---|---|---|
expiryDate | date | Access token expiry date |
token | string | Access token value |
success | boolean | Success flag |
An example of HTTP request
JSON
JSON
POST http://<Имя сервера Диспут+>/webapi/v1/auth/Login HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 56
Host: <Имя сервера Диспут+>
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
{
"login": "user",
"password": "p@ssw0rd",
"userKey": ""
}
An example of HTTP response
JSON
JSON
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 526
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 25 Apr 2018 11:13:17 GMT
{
"expiryDate": "2018-04-25T15:13:17.6704613+03:00",
"token": "<значение маркера доступа>",
"success": true
}