Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed rest routes pattern #11

Open
wants to merge 2 commits into
base: 1.0
Choose a base branch
from
Open

Changed rest routes pattern #11

wants to merge 2 commits into from

Conversation

bdunogier
Copy link
Member

@bdunogier bdunogier commented Dec 20, 2019

  • /content/objects/{contentId}/versions/{versionNo}/fields/{identifier}/items lists the results for the given version of the content item
  • /content/objects/{contentId}/currentversion/fields/{identifier}/items redirects to the other route with the current version number

TODO

  • What about route pattern conflicts ? The route above, besides the "items" part isn't specific to the query field. Isn't there a high chance of conflicts at some point ?

Bertrand Dunogier added 2 commits December 20, 2019 17:19
- /content/objects/{contentId}/currentversion/fields/{identifier}/items redirects to the other route, with the current version number
- /content/objects/{contentId}/versions/{versionNo}/fields/{identifier}/items lists the items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant