Ahh, right i misunderstood. This is actually documented in the user guide [1]. Basically just append "&list=available" to the request.
-Justin [1] http://docs.geoserver.org/stable/en/user/restconfig/rest-config-api.html#list-parameter On Tue, Feb 22, 2011 at 10:17 AM, Krishna Rajendra Alapati < [email protected]> wrote: > Hi Justin, > > The GET request will give all the published features in the datastore. But > I need these featuretype name to publish using the REST API. > > My question is how to publish a featuretype which is already exists in my > datastore? I don't know what feature types my datastore can have? Is there > any way to get this list ? > > > On 22 February 2011 16:53, Justin Deoliveira <[email protected]> wrote: > >> If your datas store is properly configured you can do this: >> >> GET http:// >> .../geoserver/rest/workspaces/<theWorkspace>/datastores/<theDataStore>/featuretypes.xml >> >> -Justin >> >> On Mon, Feb 21, 2011 at 11:30 AM, Krishna Rajendra Alapati < >> [email protected]> wrote: >> >>> Hi All, >>> >>> I have datastore created using the REST API and would like to get the >>> list of features type exists in that datastore. I need this list to >>> create/publish the featuretypes using the REST API for each and every >>> featuretype.GET request of the featuretypes only gives a list of published >>> featuretypes. >>> >>> In GUI I can get this list by selecting the datastore in "New Layer >>> chooser" section in Layers>>Add a new Resource. >>> >>> -- >>> Regards, >>> Krishna Rajendra A. >>> >>> >>> ------------------------------------------------------------------------------ >>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >>> Pinpoint memory and threading errors before they happen. >>> Find and fix more than 250 security defects in the development cycle. >>> Locate bottlenecks in serial and parallel code that limit performance. >>> http://p.sf.net/sfu/intel-dev2devfeb >>> _______________________________________________ >>> Geoserver-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>> >>> >> >> >> -- >> Justin Deoliveira >> OpenGeo - http://opengeo.org >> Enterprise support for open source geospatial. >> >> > > > -- > Regards, > Krishna Rajendra A. > -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial.
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
