Search Results for

    Show / Hide Table of Contents
    View Source

    Class QueryContentApiController

    Inheritance
    System.Object
    DeliveryApiControllerBase
    ContentApiControllerBase
    Namespace: Umbraco.Cms.Api.Delivery.Controllers
    Assembly: Umbraco.Cms.Api.Delivery.dll
    Syntax
    public class QueryContentApiController : ContentApiControllerBase

    Constructors

    View Source

    QueryContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IApiContentQueryService)

    Declaration
    public QueryContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilderBuilder, IApiContentQueryService apiContentQueryService)
    Parameters
    Type Name Description
    IApiPublishedContentCache apiPublishedContentCache
    IApiContentResponseBuilder apiContentResponseBuilderBuilder
    IApiContentQueryService apiContentQueryService
    View Source

    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 Source

    Query(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).

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • QueryContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IApiContentQueryService)
      • QueryContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IApiContentQueryService, IRequestMemberAccessService)
    • Methods
      • Query(String, String[], String[], Int32, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX