spring-attic / rest-shell

Command-line shell for interacting with Spring HATEOAS-compliant REST resources
Apache License 2.0
455 stars 100 forks source link

What convention of Urls being used here #14

Open Jacky1212 opened 12 years ago

Jacky1212 commented 12 years ago

Sorry first this is not an actual problem, I am interested to know are there any guideline on the Url formats being used in this project, especially on the singular vs plural form of nouns

e.g.

Why http://localhost:8080/person/1 instead of http://localhost:8080/people/1

Why http://localhost:8080/person/8/addresses but not http://localhost:8080/person/8/address if you intended to use singular

Thanks.

jbrisbin commented 12 years ago

/cc @olivergierke

odrotbohm commented 12 years ago

From the shell point of view there is none. It just follows whatever the server returns in the href attribute of the linkobject.

jbrisbin commented 12 years ago

This is really a question for the server-side services and has nothing to do with the rest-shell's handling of URLs.

The question of naming conventions for services is a long and sometimes opinionated one. Ask 3 different people and you'll likely get 4 different answers. :)

You might have better luck asking this question on the forums at springsource.org. [1]

[1] - http://forum.springsource.org/forumdisplay.php?25-Web