Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhealy1 committed Feb 2, 2024
1 parent a8d544e commit 980125e
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions stac_fastapi/core/stac_fastapi/core/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,70 +131,6 @@ async def delete_collection(
...


# @attr.s
# class LandingPageMixin(abc.ABC):
# """Create a STAC landing page (GET /)."""

# stac_version: str = attr.ib(default=STAC_VERSION)
# landing_page_id: str = attr.ib(default="stac-fastapi")
# title: str = attr.ib(default="stac-fastapi")
# description: str = attr.ib(default="stac-fastapi")

# def _landing_page(
# self,
# base_url: str,
# conformance_classes: List[str],
# extension_schemas: List[str],
# ) -> stac_types.LandingPage:
# landing_page = stac_types.LandingPage(
# type="Catalog",
# id=self.landing_page_id,
# title=self.title,
# description=self.description,
# stac_version=self.stac_version,
# conformsTo=conformance_classes,
# links=[
# {
# "rel": Relations.self.value,
# "type": MimeTypes.json,
# "href": base_url,
# },
# {
# "rel": Relations.root.value,
# "type": MimeTypes.json,
# "href": base_url,
# },
# {
# "rel": "data",
# "type": MimeTypes.json,
# "href": urljoin(base_url, "collections"),
# },
# {
# "rel": Relations.conformance.value,
# "type": MimeTypes.json,
# "title": "STAC/WFS3 conformance classes implemented by this server",
# "href": urljoin(base_url, "conformance"),
# },
# {
# "rel": Relations.search.value,
# "type": MimeTypes.geojson,
# "title": "STAC search",
# "href": urljoin(base_url, "search"),
# "method": "GET",
# },
# {
# "rel": Relations.search.value,
# "type": MimeTypes.geojson,
# "title": "STAC search",
# "href": urljoin(base_url, "search"),
# "method": "POST",
# },
# ],
# stac_extensions=extension_schemas,
# )
# return landing_page


@attr.s # type:ignore
class AsyncBaseCoreClient(abc.ABC):
"""Defines a pattern for implementing STAC api core endpoints.
Expand Down

0 comments on commit 980125e

Please sign in to comment.