find()
Find all records from the service.
- Javascript
- Go
- PHP
- API
const { data, error } = await kontenbase.service('posts').find()
Name | Type | Description |
---|---|---|
res.data | object | Response for data |
res.status | number | Response for status code |
res.statusText | string | Response for status message |
res.limit | number | Response for data limit |
res.skip | number | Response for data skip |
res.error | object | Response for error occurred |
resp, err := client.Service("posts").Find()
Response
Name | Type | Description |
---|---|---|
resp.Data | []map[string]interface{} | Response for data |
resp.Status | int | Response for status code |
resp.StatusText | string | Response for status message |
resp.Limit | int | Response for data limit |
resp.Skip | int | Response for data skip |
$res = $kontenbase->service('posts')->find();
Response
Name | Type | Description |
---|---|---|
$res['data'] | object | Response for all data |
$res['status'] | integer | Response for status code |
$res['statusText'] | string | Response for status message |
$res['limit'] | integer | Response for data limit |
$res['skip'] | integer | Response for data skip |
$res['error'] | object | Response for error occurred |
[GET]
https://api.kontenbase.com/query/api/v1/API_KEY/posts
note
- By default Kontenbase will return a maximum of 100 records to prevent from malicious requests.