Interface IApiMediaQueryService
Service that handles querying of the Media APIs.
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public interface IApiMediaQueryService
Methods
View SourceExecuteQuery(String, IEnumerable<String>, IEnumerable<String>, Int32, Int32)
Returns an attempt with a collection of media ids that passed the search criteria as a paged model.
Declaration
Attempt<PagedModel<Guid>, ApiMediaQueryOperationStatus> ExecuteQuery(string fetch, IEnumerable<string> filters, IEnumerable<string> sorts, int skip, int take)
Parameters
Type | Name | Description |
---|---|---|
System. |
fetch | Optional fetch query parameter value. |
IEnumerable<System. |
filters | Optional filter query parameters values. |
IEnumerable<System. |
sorts | Optional sort query parameters values. |
System. |
skip | The amount of items to skip. |
System. |
take | The amount of items to take. |
Returns
Type | Description |
---|---|
Attempt<Paged |
A paged model of media ids that are returned after applying the search queries in an attempt. |
GetByPath(String)
Returns the media item that matches the supplied path (if any).
Declaration
IPublishedContent GetByPath(string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | The path to look up. |
Returns
Type | Description |
---|---|
IPublished |
The media item at |