Method: POST
Encoding: Content-Type: application/json
Variables: login, password
Return encoding: JSON
Return: Array()
Return HTTP kodai:
stdClass Object
(
[status] ⇒ 200 200 - ok
[message] ⇒ Login Successful Zodine zinute
[data] ⇒ stdClass Object Duomenys (tokenas)
(
[token] ⇒ eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJvbWVydGFJRFAxIiwic3ViIjoxLCJpYXQiOjE1NjEzOTEyMzgsImV4cCI6MTU2MTM5NDgzOH0.AMuAJleXM8vdxuz9CZWubQG71QOVS2aFtr8zyyYAkvU
)
)
Pavyzdys
Uzklausa:
POST /auth/login HTTP/1.1
Host: api.omertamafia.com:1443
Content-Type: application/json
User-Agent: PostmanRuntime/7.15.0
Accept: */*
Cache-Control: no-cache
Postman-Token: beac5288-5945-498a-9e2e-eaf7761c0733,564c22dc-4a87-49df-8843-451b64b5179c
Host: api.omertamafia.com:1443
accept-encoding: gzip, deflate
content-length: 56
Connection: keep-alive
cache-control: no-cache
{
„login“: „dalius@laukas.lt“,
„password“: „12345“
}
Atsakymas:
{
„status“: 200,
„message“: „Login Successful“,
„data“: {
„token“: „eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJvbWVydGFJRFAxIiwic3ViIjoxLCJpYXQiOjE1NjEzOTIyMTUsImV4cCI6MTU2MTM5NTgxNX0.UFT1AfGQad_GlYL_SWFwNypdaCdaK8wTnKoV2uvvX-g“
}
}