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

Composite Id as Ressource Id - URL structure #3

Closed
MariusSchumann opened this issue Jul 20, 2015 · 4 comments
Closed

Composite Id as Ressource Id - URL structure #3

MariusSchumann opened this issue Jul 20, 2015 · 4 comments

Comments

@MariusSchumann
Copy link

In many existing web applications we have to deal with mutliple Ids (Composite Keys). Let's say, Order 4711 and Order LIne 42, whereas the Order Lines are exposed via the rest API.

How do we apply this to the REST URL structure?

1) odernlines/4711/42 
   or
2) odernlines(4711,42)

Are there any guidelines?

@Kodrafo
Copy link
Contributor

Kodrafo commented Jul 22, 2015

From my point of view that is not a composite key. Simply use

orders/4711/orderlines/42

@hlgr360
Copy link
Contributor

hlgr360 commented Jul 23, 2015

Agreed. Should we add that to the guide or add an FAQ document to the guide to track these?

@hlgr360
Copy link
Contributor

hlgr360 commented Nov 16, 2015

Can we get a close on this? @MariusSchumann or @Kodrafo - can one of you please add the change?

@Kodrafo
Copy link
Contributor

Kodrafo commented Nov 16, 2015

I will do that and look for a appropriate location in the style guide

@Kodrafo Kodrafo closed this as completed Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants