# Formatting response for GET-request

## Get Cakes

<mark style="color:blue;">`GET`</mark> `https://api.directual.com/good/api/v5/data/:_TABLE_NAME_/:_METHOD_NAME`

Not required parameter **format**, if you want to get answer as object, you must set this parameter as "head". \
Note: if API endpoint returns collection, and parameter format set as head, platform will return the first element.

#### Query Parameters

| Name      | Type   | Description                                                    |
| --------- | ------ | -------------------------------------------------------------- |
| format    | string | Wrapper for result answer (default: "", options: "" or "head") |
| pageSize  | string | Count of objects in response (default: 30)                     |
| page      | string | Number of page (start with 0, default: 1)                      |
| appID     | string | You app id                                                     |
| sessionID | string |                                                                |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}
