iiasa / ixmp4

A data warehouse for high-powered scenario analysis in the domain of integrated assessment of climate change and energy systems modeling
https://docs.ece.iiasa.ac.at/ixmp4
MIT License
10 stars 6 forks source link

Fix API deletes #70

Closed meksor closed 6 months ago

meksor commented 6 months ago

Currently on the production setup deletes fail because no trailing slash is added in the api layer and there is some mishap in how that request is redirected... I've fixed the api layer and set redirect_slashes=False for fastapi. All requests to endpoints without trailing slashed will thus result in a 404. The docs are now also served with trailing slashes so i can use an nginx rewrite instead of the fastapi redirect. Should fix #57

meksor commented 6 months ago

Why do we need to set docs_url and redoc_url specifically?

Because otherwise they are served at a location without a trailing slash.