Skip to content

Commit

Permalink
PB-987: Add item-search and features to conformance endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasJoss committed Oct 25, 2024
1 parent 67ace5c commit 6ad0486
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ test-conformance:
--root-url http://localhost:$(HTTP_PORT)/api/stac/v1/ \
--conformance core \
--conformance collections \
--conformance features \
--conformance item-search \
--geometry '{"type": "Polygon", "coordinates": [[[0, 0], [90, 0], [90, 90], [0, 90], [0, 0]]]}' \
--collection $(collection)

###################
Expand Down
19 changes: 19 additions & 0 deletions app/stac_api/migrations/0051_update_conformance_endpoint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 5.0.8 on 2024-10-09 11:45

from django.db import migrations


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/ogcapi-features')
lp.conformsTo.insert(2, 'https://api.stacspec.org/v1.0.0/item-search')
lp.save()


class Migration(migrations.Migration):
dependencies = [
("stac_api", "0050_collectionassetupload_and_more"),
]

operations = [migrations.RunPython(add_landing_page_version)]

0 comments on commit 6ad0486

Please sign in to comment.