Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the SLD REST API docs about the retrieval of SLD 1.1.0 styles #346

Open
giohappy opened this issue Mar 30, 2023 · 1 comment
Open

Comments

@giohappy
Copy link

giohappy commented Mar 30, 2023

The API docs say that for retrieving a style either the ".sld" or the ".css" extension should be used, and that alternatively the Accept header can be set to specify the requested format.
By the way, this is isn't all the truth:

  • if you request an SLD 1.1.0 style by appending the ".sld" extension it's automatically transformed to 1.0.0
  • if you add the Accept: application/vnd.ogc.se+xml header it isn't taken into consideration since the ".sld" extension has precedence
  • the only solution to obtain the original 1.1.0 style is to do not append any extension (it would be nice to have the ".se" extension)

I suggest to document the three points above inside the swagger docs for styles

@giohappy giohappy changed the title Improve the SLD REST API docs about retrieving SLD 1.1.0 styles Improve the SLD REST API docs about the retrieval of SLD 1.1.0 styles Mar 30, 2023
@nmco nmco assigned Mike7311 and unassigned nmco May 10, 2023
@Mike7311
Copy link

PR: geoserver#6840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants