plone / plone.restapi

RESTful API for Plone.
http://plonerestapi.readthedocs.org/
84 stars 73 forks source link

@aliases endpoint should allow to filter by how an alias has been added (automatically, manually) #1791

Open tisto opened 2 weeks ago

tisto commented 2 weeks ago

PR for adding aliases: https://github.com/plone/plone.restapi/pull/1398

The @aliases endpoint allows to filter by path:

http://localhost:8080/Plone/++api++/@aliases&q=/de/ft/my-path

However, there is no way to filter by how an alias has been added, e.g.:

http://localhost:8080/Plone/++api++/@aliases&q=/de/ft/my-path&manual=true

I'd suggest adding a new parameter "manual" to the GET endpoint so that we can filter by "manual=true" or "manual=false"