deegree / deegree-ogcapi

OGC API implementations based on deegree
GNU Lesser General Public License v2.1
5 stars 5 forks source link

Add support for overriding accepted format #81

Closed stempler closed 1 year ago

stempler commented 1 year ago

Support overriding accepted format for a request by specifying a query parameter or adding an extension to the request URL:

See #76. Follows priority for format/encoding as suggested by @stephanr

stempler commented 1 year ago

Related to the query parameter it was rather arbitrary that I chose accept from the proposals in #76. Just saw that for some requests f seems to be already supported. Would be no problem to change it to use f generally or to support both. Any preferences?

stempler commented 1 year ago

Added the f query parameter now also to the generic format override support, so it can be consistently used with the resources that already handle it and those that don't. The logic for the cases where the parameter is already specifically handled takes precedence over the generic mechanism introduced in the PR.