Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Link discrepancy possible between /collections and /collection/{id} #266

Closed
moradology opened this issue Sep 16, 2021 · 1 comment
Closed

Comments

@moradology
Copy link
Collaborator

It looks like the pgstac implementations of all_collections and get_collection don't always agree in the link field that each produces for a given collection.

It is possible that extra_links should be used here although that argument is not provided in the details case here and is thus not likely to be the culprit.

Example from list endpoint (for a given collection):

"links": [
  {
    "rel": "license",
    "href": "https://www.fsa.usda.gov/help/policies-and-links/"
  }
]

Example from detail (the above mentioned collection) endpoint:

"links": [
  {
    "rel": "items",
    "type": "application/geo+json",
    "href": "http://localhost:8080/stac/collections/usda-naip/items"
  },
  {
    "rel": "parent",
    "type": "application/json",
    "href": "http://localhost:8080/stac/"
  },
  {
    "rel": "root",
    "type": "application/json",
    "href": "http://localhost:8080/stac/"
  },
  {
    "rel": "self",
    "type": "application/json",
    "href": "http://localhost:8080/stac/collections/usda-naip"
  }
],
@moradology
Copy link
Collaborator Author

Closed in #269

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant