Class QueryContentApiController
Namespace: Umbraco.Cms.Api.Delivery.Controllers
Assembly: Umbraco.Cms.Api.Delivery.dll
Syntax
public class QueryContentApiController : ContentApiControllerBase
Constructors
View SourceQueryContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IApiContentQueryService)
Declaration
public QueryContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilderBuilder, IApiContentQueryService apiContentQueryService)
Parameters
Type | Name | Description |
---|---|---|
IApiPublishedContentCache | apiPublishedContentCache | |
IApiContentResponseBuilder | apiContentResponseBuilderBuilder | |
IApiContentQueryService | apiContentQueryService |
QueryContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IApiContentQueryService, IRequestMemberAccessService)
Declaration
public QueryContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilderBuilder, IApiContentQueryService apiContentQueryService, IRequestMemberAccessService requestMemberAccessService)
Parameters
Type | Name | Description |
---|---|---|
IApiPublishedContentCache | apiPublishedContentCache | |
IApiContentResponseBuilder | apiContentResponseBuilderBuilder | |
IApiContentQueryService | apiContentQueryService | |
IRequestMemberAccessService | requestMemberAccessService |
Methods
View SourceQuery(String, String[], String[], Int32, Int32)
Gets a paginated list of content item(s) from query.
Declaration
public async Task<IActionResult> Query(string fetch, string[] filter, string[] sort, int skip = 0, int take = 10)
Parameters
Type | Name | Description |
---|---|---|
System.String | fetch | Optional fetch query parameter value. |
System.String[] | filter | Optional filter query parameters values. |
System.String[] | sort | Optional sort query parameters values. |
System.Int32 | skip | The amount of items to skip. |
System.Int32 | take | The amount of items to take. |
Returns
Type | Description |
---|---|
Task<IActionResult> | The paged result of the content item(s). |