-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Description
Hi,
in our job we hav a resource that has a verion and for a business case the only identifier possible is a composite key so we came to these solutions.
1/ /myresource/code/version/
2/ /myresource?code=anycode&version=1
3/ /myresource/metacode with metacode=code+version
Several solutions appear on the internet, but we went for
2/ /myresource?code=anycode&version=1
that will return an array of 1 myresource
1/ /myresource/code/version => KO because /code/ is not an unique ID so it's not REST because url id should lead to a resource.
3/ /myresource/metacode => KO it's not clean as metacode is not really a property of the REST resource.
Did you have the case? How would you handle it?
chiawendt and davidliang2008
Metadata
Metadata
Assignees
Labels
No labels