Class QueryMediaApiController
Namespace: Umbraco.Cms.Api.Delivery.Controllers.Media
Assembly: Umbraco.Cms.Api.Delivery.dll
Syntax
public class QueryMediaApiController : MediaApiControllerBase
Constructors
View SourceQueryMediaApiController(IPublishedMediaCache, IApiMediaWithCropsResponseBuilder, IApiMediaQueryService)
Declaration
public QueryMediaApiController(IPublishedMediaCache publishedMediaCache, IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder, IApiMediaQueryService apiMediaQueryService)
Parameters
Type | Name | Description |
---|---|---|
IPublished |
publishedMediaCache | |
IApi |
apiMediaWithCropsResponseBuilder | |
IApi |
apiMediaQueryService |
Methods
View SourceQuery(String, String[], String[], Int32, Int32)
Declaration
public async Task<IActionResult> Query(string fetch, string[] filter, string[] sort, int skip = 0, int take = 10)
Parameters
Type | Name | Description |
---|---|---|
System. |
fetch | |
System. |
filter | |
System. |
sort | |
System. |
skip | |
System. |
take |
Returns
Type | Description |
---|---|
Task<IAction |
QueryV20(String, String[], String[], Int32, Int32)
Gets a paginated list of media item(s) from query.
Declaration
public async Task<IActionResult> QueryV20(string fetch, string[] filter, string[] sort, int skip = 0, int take = 10)
Parameters
Type | Name | Description |
---|---|---|
System. |
fetch | Optional fetch query parameter value. |
System. |
filter | Optional filter query parameters values. |
System. |
sort | Optional sort query parameters values. |
System. |
skip | The amount of items to skip. |
System. |
take | The amount of items to take. |
Returns
Type | Description |
---|---|
Task<IAction |
The paged result of the media item(s). |