This documentation is still a work in progress. Please contact Support to register for early access.
curl "https://api.portierx.com/v1/core/locking-system?page=2&limit=20"
page
parameter specifies which page of results to retrieve.limit
parameter defines the number of results per page (maximum allowed is 100).{
"msg": "Retrieved item list successfully",
"data": [
{
"msg": "info"
}
],
"meta": {
"pagination": {
"total": 100,
"count": 10,
"per_page": 10,
"current_page": 1,
"total_pages": 10
}
}
}
Field | Description |
---|---|
total | The total number of available records. |
count | The number of records returned in the current response. |
per_page | The number of records per page. |
current_page | The current page number. |
total_pages | The total number of pages available. |
order
query string parameter. By default, sorting is based in creation date ascending (oldest to newest / smaller to larger). It accepts a comma-separated list of fields and directions.curl "https://api.portierx.com/v1/core/locking-system?order=age.desc,height.asc"
age.desc
sorts the age
field in descending order.height.asc
sorts the height
field in ascending order.curl "https://api.portierx.com/v1/core/locking-system?order=age"
nullsfirst
or nullslast
:curl "https://api.portierx.com/v1/core/locking-system?order=age.nullsfirst"
curl "https://api.portierx.com/v1/core/locking-system?order=age.desc.nullslast"