Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

What convention of Urls being used here #14

Open
Jacky1212 opened this issue Nov 12, 2012 · 3 comments
Open

What convention of Urls being used here #14

Jacky1212 opened this issue Nov 12, 2012 · 3 comments

Comments

@Jacky1212
Copy link

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
Copy link
Contributor

/cc @olivergierke

@odrotbohm
Copy link

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

@jbrisbin
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants