This repo demonstrates a problem in stac-fastapi with router prefixes in path handling.
- docker-compose up
- navigate to http://localhost:8080/docs in browser
- observe all paths start with
/router_prefix
- execute GET on landing page endpoint
curl -X 'GET' 'http://localhost:8080/router_prefix/' -H 'accept: application/json'
- observe all
href
properties exclude/router_prefix
- execute GET on search endpoint, passing
limit=1
(there are two items in the STAC catalog)curl -X 'GET' 'http://localhost:8080/router_prefix/search?limit=1' -H 'accept: application/geo+json'
- observe
next
andself
href
properties in response'slinks
section include/router_prefix
whileroot
href
properties does not