[mapguide-internals] RESTful Ramblings of a Restless Lunatic
Haris Kurtagic
haris at sl-king.com
Wed Oct 3 18:14:06 EDT 2007
Great Bob.
I also prefer .xml, in general my call would be to use '/' in URI path
when it represents relationships like Order/Customer , Map/Layer etc.
Haris
-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Robert
Bray
Sent: Wednesday, October 03, 2007 11:58 PM
To: MapGuide Internals Mail List
Subject: Re: [mapguide-internals] RESTful Ramblings of a Restless
Lunatic
Comments inline...
Jason Birch wrote:
> Cool stuff Bob.
>
> Few thoughts after a brief skim:
>
> - Is there a reason why you're using unique URLs for insert/update
> instead of using PUT for update and POST for insert?
Because I felt like being anti-restful :) No that is just oversight on
my part, I'll fix it.
>
> - Also, for session creation, it should be enough to POST to /session
,
> not /session/create ? Thinking there may be other things like this...
> GET to /session returns EnumerateSessions, that kind of thing.
Session enumeration is not allowed for security reasons. However I agree
that POST to /session is a better way to go.
>
> - I much prefer .xml .json .png etc for different representations.
I figured you would. I'll see what everyone else says before making the
update.
>
> - I also would like to see the default representation as HTML, with
lots
> of <a> links. :)
Yea ok :;
>
> Jason
>
>
> -----Original Message-----
> From: mapguide-internals-bounces at lists.osgeo.org
> [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of
Robert
> Bray
> Sent: Wednesday, October 03, 2007 12:55
> To: MapGuide Internals Mail List
> Subject: [mapguide-internals] RESTful Ramblings of a Restless Lunatic
>
> All,
>
> I left FOSS4G last week somewhat pumped after seeing the talk Haris
gave
> demonstrating his RESTful Web Service client. So I went out this
weekend
> purchased the O'Reilly RESTful Web Services book and read it mostly
> from cover to cover. That of course left me pondering what a RESTful
> interface to MapGuide should look like, so I spent a couple of hours
> hacking the following (still incomplete) proposal together:
>
> http://trac.osgeo.org/mapguide/wiki/RESTfulWebServices
>
> I approached this somewhat differently than Haris did, at this point
it
> is up to you to decide whether that is bad or good. However I think my
> approach is pretty clean while exposing all of the capabilities of
> MapGuide in a RESTful manner.
>
> Feel free to either discuss this here on the list or add your comments
> to the Wiki page (or both).
>
> Bob
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals
More information about the mapguide-internals
mailing list