> For the complete documentation index, see [llms.txt](https://chimu.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chimu.gitbook.io/api/methods/.one.md).

# .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**

{% hint style="info" %}
Example

**GET\_LIST\_SUCCESS** or **GET\_LIST\_FAILURE**
{% endhint %}

### Data

Contains response from server.

{% hint style="info" %}
Example [JSON Api](https://jsonapi.org/)
{% endhint %}

{% code title="Success reponce" %}

```javascript
{
  "data": [
    {
      "type": "someList",
      "id": 1,
      "attributes": {
        "name": "Some name",
      }
    }
  ],
  "result": true
}
```

{% endcode %}

{% code title="Responce with error" %}

```javascript
errors: [{
    code: 429001,
    message: 'Error test message'
}],
result: false,
```

{% endcode %}

###
