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

PB-987: Add item-search to conformance endpoint #465

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

LukasJoss
Copy link
Contributor

No description provided.

def add_landing_page_version(apps, schema_editor):
LandingPage = apps.get_model("stac_api", "LandingPage")
lp = LandingPage.objects.get(version='v1')
lp.conformsTo.insert(2, 'https://api.stacspec.org/v1.0.0/item-search')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we also need to add conformance to https://api.stacspec.org/v1.0.0/collections/?

Copy link
Contributor

@benschs benschs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correctly we don't fully comply with the "item-search".
We use content-type header application/json instead of application/geo+json, this is to optimize cloudfront.
If we don't care about this we could probably also add "https://api.stacspec.org/v1.0.0/ogcapi-features".

I found https://github.com/stac-utils/stac-api-validator useful to help test our conformance.

@benschs benschs self-requested a review October 14, 2024 07:39
@LukasJoss LukasJoss force-pushed the feat-PB-987-adapt-conformance-endpoint branch from 66048ef to 68e484e Compare October 14, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants