Thanks Mark. On Thu, Feb 18, 2021, 15:24 Mark Prins <[email protected]> wrote:
> On 18-02-2021 13:22, Simon Crown wrote: > > GeoServer 2.18.0 > > > > I would like to get the status system-environment information in XML or > > JSON format. > > > > If I issue the following GET /rest/about/status/system-environment I get > > a wealth of information in HTML. I have tried appending .json or .xml to > > this request but all I get is an object called statuss which contains an > > object which contains a name and a href. > > > > Hi Simon, > > use (JSON): > > curl -u admin:geoserver -X GET > http://localhost:8080/geoserver/rest/about/system-status -H "accept: > application/json" -H "content-type: application/json" > > or (XML) > > curl -u admin:geoserver -X GET > http://localhost:8080/geoserver/rest/about/system-status -H "accept: > application/xml" -H "content-type: application/json" > > one line, the trick is in the accept type. > > HTH, Mark > > > _______________________________________________ > 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 > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
