# .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 %}

###


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chimu.gitbook.io/api/methods/.one.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
