-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fix/add landing page links #229
Fix/add landing page links #229
Conversation
Looks like this has some changes from #230 , we should merge that first and then update this branch. |
I cherry picked the makefile change to make the sqlalchemy tests run, but other than that these should be able to be merged independently. |
In some way, I would wish that you didn't change it, so that a prominent implementation would be doing something other than /api, which would allow us to more easily find clients who hardcode /api rather than discovering the URL from the root links. |
It might be worth removing the openapi / docs endpoints from the landing page because I don't think they will work with changes introduced in #147 |
They seem to be working okay on cc: @geospatial-jeff |
I would recommend against removing them, even if they're not entirely accurate, as the link relation is required by stac api. |
@philvarner To me the STAC API docs are a little fuzzy on this point. There's this sentence from the Core API docs...
...and then in the Link Relations section (emphasis added)...
However, in reality, it seems like That aside, I agree we should keep the links even if they're not perfect, as long as they are not misleading. |
I can see the usefulness of this from the client validation standpoint and I don't have a strong opinion on this, so I will go with whatever the consensus is. The thinking for changing it is that it seems like |
I agree that's not worded well. For one, that should be "shall" and not "should". (I shall fix it, if you should like) Moving |
Definitely, stac-fastapi is that. Good point about following best practices |
😆 I should! |
The OpenAPI endpoint is now configurable with |
@geospatial-jeff @lossyrob This is ready for another look-over |
Related Issues:
search
link relation advertised with type application/json instead of application/geo+json #219Summary of Changes:
test_conformance
so that we only fetch it onceroot
andservice-desc
links to landing pagetype
ofsearch
link to"application/geo+json"
Questions:
"service-desc"
rel type be added tostac-pydantic.links
?"application/vnd.oai.openapi+json;version=3.0"
MIME type be added tostac_pydantic.shared
?Opened Add OpenAPI MIME and rel types stac-pydantic#101 for both of these changes.
/api
to be in line with the recommendation in the STAC API spec?This is configurable in
ApiSettings.openapi_url
and defaults to/api
UPDATE: Should I also include a fix to theI'll do this in a separate PR since it seems like it might be a bit involved./search
endpoint"Content-Type"
header for /search endpoint returns Content-Type header of application/json instead of application/geo+json #220?I plan to add the equivalent changes to theI got these working and added the equivalent tests.sqlalchemy
app but was having some trouble getting those tests to run and I thought I'd get feedback on this first.cc: @philvarner