Uri
Methods description
The list method allows you to get a list of the Uri
Request:
{site_path}/{lang}/api/uri/list
GET parameters list:
| filter | array | Allows filtering data by all available fields |
| fields | string | Allows to select only the specified fields from all available |
| sort | string | Allows you to sort asc and desc entities by all available fields |
| page | int | Allows you to pass the page number of the list of entities |
List of all available fields
| id | int | Uri ID |
| name | string | Name |
| lastDay | string | Last used |
Response
The response is transmitted in JSON format. List of response fields:
| result | array | List of entities based on query parameters |
| _links | array | List of navigation links. May contain the following elements:
|
| _meta | array | Information on list navigation. Contains elements:
|
Request example:
{site_path}/{lang}/api/uri/list?filter[id][in][]=298790598&filter[id][in][]=526628817&sort=name
Response example:
{
"result": [
{
"id": 447537271,
"name": "films/sport-filmy/page/30/",
"lastDay": 20201116
},
{
"id": 2064898038,
"name": "view/86/2017/0102/9f21360c799199d33155b9cbb4a6bff9.gif.html",
"lastDay": 20201113
}
],
"_links": {
"self": {
"href": "{site_path}/{lang}/api/uri/list?filter%5Bid%5D%5Bin%5D%5B0%5D=447537271&filter%5Bid%5D%5Bin%5D%5B1%5D=2064898038&sort=name&page=1"
}
},
"_meta": {
"totalCount": 2,
"pageCount": 1,
"currentPage": 1,
"perPage": 20
}
}