|
Re: Recommended url paths? Bugzilla example ..? [message #1220227 is a reply to message #1220203] |
Tue, 10 December 2013 13:40 |
|
Perhaps in the example you quoted "services" or "serviceProviders" is not needed.
I tend to use the general pattern of:
<server context>/<application context>/<resource kind>/<system assigned identifier, stable>
So you'd expect:
h t t p://HOST/OSLC4JBugzilla/serviceProviders
Doing a GET on this URL returns all serviceProviders. Doing a POST on this URL, with serviceProvider representation, creates a new serviceProvider
h t t p://HOST/OSLC4JBugzilla/serviceProviders/1
Would provide you with 1 instance of a service provider.
Next if I wanted to host bugs, I would probably do it this way:
h t t p://HOST/OSLC4JBugzilla/bugs/1
Unless of course, the bugs for your bug tracking tool are scoped only to a project or service provider, then I'd define it a little different.
Just a reminder we are talking about service provider implementation. How best to design the URL space the application will fill. Clients should still use the "follow their nose" approach to discovering resources of interest and not understand this URL construction design and build URLs to try to locate resources of interest.
Perhaps we should consider opening a bug against our reference implementation and make it a slightly better example of these things (what one would really do in a real implementation)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03195 seconds