Skip to content
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

Possibly incorrect self link on collections/<collection-id>/items page #124

Open
TomAugspurger opened this issue Sep 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@TomAugspurger
Copy link
Contributor

Spotted by @geospatial-jeff, the "self" link at https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a/items?limit=1 links to the collection "https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a".

❯ curl --silent 'https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a/items?limit=1' | jq .links[3]
{
  "rel": "self",
  "type": "application/json",
  "href": "https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a"
}

Should that instead be the URL itself, like https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a/items?limit=1?

@TomAugspurger TomAugspurger added the bug Something isn't working label Sep 29, 2022
@TomAugspurger TomAugspurger changed the title Possibly incorrect self link on /items page Possibly incorrect self link on collections/<collection-id>/items page Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant