[Corona] Corona CRUD uri pattern
Geert Josten
geert.josten at dayon.nl
Fri Dec 2 07:41:53 PST 2011
Not sure. What would be wrong with writing this?
http://myhost/store/article/beverage/afternoon-drink.json
Anything behind /store could be used as internal uri..
Grtz
-----Oorspronkelijk bericht-----
Van: Clark Richey [mailto:Clark.Richey at marklogic.com]
Verzonden: vrijdag 2 december 2011 16:25
Aan: Geert Josten
CC: corona at developer.marklogic.com
Onderwerp: Re: [Corona] Corona CRUD uri pattern
One of the challenges with using a more pure REST style for this is in
handling URIs that look more like this:
/article/beverage/afternoon-drink.json. The fact that we are sending in a
uri will break a pure rest representation as the uri is an atomic value
here and not a descriptive resource. Does that make sense?
----
Sent from my iPad
Clark D. Richey, Jr.
Principal Technologist, Federal
MarkLogic
+1 240 252 7507 Cell
Clark.Richey at marklogic.com
1600 Tysons Blvd., 8th Floor
McLean, VA 22102
www.marklogic.com
This e-mail and any accompanying attachments are confidential. The
information is intended solely for the use of the individual to whom it is
addressed. Any review, disclosure, copying, distribution, or use of this
e-mail communication by others is strictly prohibited. If you are not the
intended recipient, please notify us immediately by returning this message
to the sender and delete all copies. Thank you for your cooperation.
On Dec 2, 2011, at 10:16 AM, "Geert Josten" <geert.josten at dayon.nl> wrote:
> I noticed that Corona uses this uri pattern for CRUD actions:
>
> PUT http://myhost/store?uri=/afternoon-drink.json
>
> instead of the proper REST-style pattern:
>
> PUT http://myhost/store/afternoon-drink.json
>
> Wouldn't it be better to do the latter? (Or at least support both?)
>
> Kind regards,
> Geert
> _______________________________________________
> Corona mailing list
> Corona at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/corona
More information about the Corona
mailing list