crim-ca / weaver

Weaver: Workflow Execution Management Service (EMS); Application, Deployment and Execution Service (ADES); OGC API - Processes; WPS; CWL Application Package
https://pavics-weaver.readthedocs.io
Apache License 2.0
23 stars 6 forks source link

Redirect `/api` schema request with JSON to `/json` #623

Open fmigneault opened 2 months ago

fmigneault commented 2 months ago

Description

For convenience, the /api request providing f=json or Accept: application/json explicitly should automatically return the contents normally obtained on /json.

For backward compatibility, the /api endpoint should continue to return the OpenAPI HTML (swagger).

References