Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28801

As a REST consumer, I want to get the location that matches an URL alias

    XMLWordPrintable

Details

    • [2.1] Sprint 3
    • 2

    Description

      Problem that this fixes

      With the current (2.0) REST API, there is no way to translate an URL alias into a location or content.

      Specification

      The locations list resource (/content/locations) already supports filtering on id and remoteId:

      GET /api/ezp/v2/content/locations?remoteId=somelocationremoteid
      GET /api/ezp/v2/content/locations?id=1234
      

      It therefore makes sense that the location matching a URL aliases can be looked up the same way:

      GET /api/ezp/v2/content/locations?urlAlias=Path/To-Content
      

      The resource should behave as it does with the other arguments, or without any arguments, and return a reference to the matching location.

      Tasks

      • REST specification update
      • Implementation
      • Functional tests

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: