.one()

Input date

Arguments

Name

Type

Default

scheme

Object

{}

Output date

Returned Promise where response are object with .status and .data field

Status

Contains scheme type with request result SUCCES or FAILURE

Example

GET_LIST_SUCCESS or GET_LIST_FAILURE

Data

Contains response from server.

Example JSON Api

Success reponce
{
"data": [
{
"type": "someList",
"id": 1,
"attributes": {
"name": "Some name",
}
}
],
"result": true
}
Responce with error
errors: [{
code: 429001,
message: 'Error test message'
}],
result: false,