Hello all,

Please could I ask for a little help - I am trying to create a datastore from a 
dir of shapefiles already on the server, using JSON via REST API.

I am unsure of the correct data structure to post to the server, as the 
documentation is not quite exhaustive in this area.

At the moment I am trying the following:
POST to httrp://server:port/rest/workspaces/myWorkspace/datastores
Body:
dataStore: {
name: 'name',
description: 'my description',
enabled: true,
connectionParameters: {
  url: "file:data/dirName",
  fstype: "shape"
}
}

Any help as always, appreciated.

Mark

Mark Paxton
Web Application Developer

Tel : +44 (0)1243 816606
Mobile :
Email : [email protected]

[MAKING A DIFFERENCE OFFSHORE]<http://www.searoc.com/>


[SeaRoc Group.]<http://www.searoc.com/>

[ISO 9001 Certification]


SeaRoc Group Ltd. is a registered company (06416555) in England & Wales. Our 
Registered Office is 45 South Street, Chichester, West Sussex, PO19 1DS.  
Disclaimer<http://searoc.com/index/100/Privacy-Policy>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to