# Server Table

```markup
<div id="people">
  <v-server-table url="/people" :columns="columns" :options="options"/>
</div>
```

```javascript
new Vue({
    el: "#people",
    data: {
        columns: ['id', 'name', 'age'],
        options: {
            // see the options API
        }
    }
});
```

All request data is passed in the following GET parameters:

* query
* limit
* page
* orderBy
* ascending
* byColumn

You need to return a JSON object containing two properties:

* `data` :  `array` - An array of row objects with identical keys.
* `count`: `integer` - Total count before limit.

{% hint style="info" %}
&#x20;If you are calling a foreign API or simply want to use your own keys, refer to the \`responseAdapter\` option.
{% endhint %}

{% hint style="info" %}
If you want to get the request parameters and send them to a different URL (e.g in order to export to Excel) use `this.$refs.myTable.getRequestParams()`
{% endhint %}


---

# 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://matanya.gitbook.io/vue-tables-2/server-table.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.
