解决方案

解决方案

从单品供货走向场景交付,为轨交、楼宇、政府机关、治安与交通监控提供可靠方案。

智能配电、KVM控制与视频处理协同,服务地铁线路关键系统。

轨道交通

Subway icon轨道交通

Specifying how the results should be ordered, can be achieved using the sort query option. You can use this parameter to sort the content items by fields, including create date, level, name, sort order, and update date. For each field, you can specify whether the items should be sorted in ascending (asc) or descending (desc) order. Without a sort query parameter, the order of the results will be determined by the relevance score of the DeliveryApiContentIndex for the search term.

?sort=createDate:asc/desc An option to sort the results based on the creation date of the content item in either asc or desc order.

?sort=level:asc/desc An option to sort the results based on the level of the content item in the content tree in either asc or desc order.

?sort=name:asc/desc An option to sort the results based on the name of the content item in either asc or desc order.

?sort=sortOrder:asc/desc An option to sort the results based on the sort order of the content item in either asc or desc order.

?sort=updateDate:asc/desc An option to sort the results based on the last update date of the content item in either asc or desc order.

Different sorting options can be combined for the /umbraco/delivery/api/v2/content endpoint, allowing for more advanced sorting functionality. Here is an example:

Request

Copy
GET /umbraco/delivery/api/v2/content?sort=name:asc&sort=createDate:asc