I added two sections to the developer documentation. One is an example of how to build a service/resource with the map based approach. The other is how to build a service/resource with the reflection based approach. Here is the link again:
http://gridlock.openplans.org/geoserver/1.7.x/doc/developer/programming-guide/rest-services/index.html -Justin Justin Deoliveira wrote: > Andrea Aime wrote: >> Justin Deoliveira ha scritto: >>> Hi all, >>> >>> Here is the official proposal for moving the rest module to a core >>> module. >>> >>> http://geoserver.org/display/GEOS/GSIP+32+-+REST+support+module >>> >>> Feedback welcome. >> The documentation page is leaving me with some doubts. Like, for >> example, the role of a finder in our implementation. Do we have any? > > The docs are a bit basic at this point. They need some work. I will > expand on them. But essentially the finder is used to map different > classes of resources, to a single url. And that is just my practical > understanding... David probably has better insight since he knows > restlet better than I. >> The example does not show how to deal with output formats other >> than plain text. Is this still working based on maps, or based >> on reflection? > Yeah, the example there is based on the most simple thing one can do. > Again, I will expand on the docs but essentially there are subclasses of > AbstractResource: MapResource, and ReflectiveResource, which can do some > automatic serialization for you in json and xml. My plan was to add > three tutorials... 1) the very basic 2) the map approach 3) the > reflection approach >> It would also be nice to see some javadocs, probably they would >> answer the above questions. > > Added a link from the proposal. But they are available here: > > http://gridlock.openplans.org/rest/apidocs/ >> Cheers >> Andrea >> > > -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
