Chimu
Searchโ€ฆ
.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
1
{
2
"data": [
3
{
4
"type": "someList",
5
"id": 1,
6
"attributes": {
7
"name": "Some name",
8
}
9
}
10
],
11
"result": true
12
}
Copied!
Responce with error
1
errors: [{
2
code: 429001,
3
message: 'Error test message'
4
}],
5
result: false,
Copied!

โ€‹