The REST API is for administrative purposes not to access data - to download a PDF of a WMS layer you need to use
curl " http://localhost:8080/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=topp%3Astates&bbox=-124.73142200000001%2C24.955967%2C-66.969849%2C49.371735&width=768&height=330&srs=EPSG%3A4326&styles=&format=application/pdf " Ian On Wed, 25 Aug 2021 at 16:36, Андрей Метелкин <metylkin.and...@gmail.com> wrote: > Good day! Tell me please: how to download a pdf layer via rest API. > To concretize, I just need to download in PDF or JPG for example a layer > with the name: topp: states > I know how to look at the list of layers: > curl -u test: test -XGET http://10.10.1.144:8080/geoserver/rest/layers > But how to download a specific layer to the local computer, I can't find > any information. > > -- > С уважением, > Метелкин Андрей > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ian Turton
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users