This is what I understand you are looking for, correct me if I misunderstood:
http://docs.geoserver.org/latest/en/user/rest/examples/curl.html#uploading-a-shapefile Talking about your screenshot, you can't post on rest/layers but you have to work on a specific store and filename. In the example I suggest, 'file.shp' is the name you want to call the layer you upload http://localhost:8080/geoserver/rest/workspaces/acme/datastores/roads/file.shp The url may be divided in few parts: http://localhost:8080/geoserver/rest/workspaces/acme: Acme is the workspace you want to use, you need to create it manually; /datastores/roads: roads is the name of the datastore geoserver will create to keep your file /file.shp: the name of the featuretype you will see on geoserver I hope this can help you. On martedì 6 settembre 2016 00:59:44 CEST ccjklppp wrote: > I read the samples and there is no layer publishing example. All the samples > are dealing with creating stores or using existing layers. > > According to the documentation, POST method for Layers as a status code 405 > (method is not allowed): > <http://osgeo-org.1560.x6.nabble.com/file/n5284207/Capture.jpg> > > I'll appreciate your help. > > Best regards. > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Creating-a-layer-through-REST-API-tp528 > 3840p5284207.html Sent from the GeoServer - User mailing list archive at > Nabble.com. > > ---------------------------------------------------------------------------- > -- _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Saluti. .Federico C Guizzardi >_ abstract.it ............................................................................... Registro Imprese di Napoli 788429 / Cap. Soc. 10.000 Euro I.V. Avvertenze Legali - D. Lgs. 196/03 Tutela dei dati personali. Le informazioni contenute in questo messaggio e in ogni eventuale allegato sono riservate e ne è vietata ogni forma di diffusione. Se avete ricevuto questa comunicazione per errore, Vi preghiamo di informare immediatamente il mittente del messaggio e di eliminare l'e-mail.
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
