Retrieve all entries for the given model. Supports filtering via query parameters and pagination. Unless the model says otherwise, you must be an administrator.
Query parameters
-
Page number for pagination
-
Number of results per page
-
Without page, id of the last row of the previous request. With limit, it walks the whole list from the newest created row to the oldest, request after request, until one returns fewer rows than limit
-
Whether to include relations
Default value is
false. -
Comma-separated list of attributes to return for each entry (id and type are always included). Unknown names are ignored.
GET
/data/softwares
curl
curl -X GET "http://api.example.com/data/softwares?page=1&limit=50&relations=false" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
import requests
url = "http://api.example.com/data/softwares"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
params = {
"page": 1,
"limit": 50,
"relations": false
}
payload = None
response = requests.get(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
Response examples (200)
Array-1
[
{}
]
{
"data": [
{}
],
"total": 100,
"nb_pages": 2,
"limit": 50,
"offset": 0,
"page": 1
}