Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-113619

Add the ability to query assets to the headless APIs (openAPI / graphql)

    Details

      Description

      Currently, there is no generic way to query assets through the headless delivery APIs like there currently is using this JSON WS endpoint:

      http://localhost:8080/api/jsonws/assetentry/get-entries/+entry-query/entry-query.anyCategoryIds/93566

      The Content-Set api provides some of this functionality but the category selections have to be done in the configuration of the content set and cannot be specified by the API caller

      Please provide a way to flexibly query assets similar to how AssetEntryQuery works with functionality like anyCategoryIds, allCategoryIds,notAnyCategoryIds, etc.

       

      Acceptance criteria

       

      Given a site with documents, blogs, structured content

      When a user makes a GET request to http://localhost:8080/o/headless-delivery/v1.0/sites/{siteId}/content-elements

      Then the server will return a paginated list with all the assets stored in that site

       

      Given a site with documents, blogs, structured content

      When a user makes a GET request to http://localhost:8080/o/headless-delivery/v1.0/sites/{siteId}/content-elements

      Then she can filter by contentType, title, keywords, categories

      And paginate, sort, search on the results

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              manoel.cyreno Manoel Cyreno
              Reporter:
              allen.ziegenfus Allen Ziegenfus
              Engineering Assignee:
              SE Support
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.1.X
                  7.2.X
                  Master