|
17 | 17 | StacType = Dict[str, Any] |
18 | 18 |
|
19 | 19 |
|
20 | | -@attr.s # type:ignore |
| 20 | +@attr.s |
21 | 21 | class AsyncBaseTransactionsClient(abc.ABC): |
22 | 22 | """Defines a pattern for implementing the STAC transaction extension.""" |
23 | 23 |
|
@@ -161,58 +161,6 @@ def extension_is_enabled(self, extension: str) -> bool: |
161 | 161 | """Check if an api extension is enabled.""" |
162 | 162 | return any([type(ext).__name__ == extension for ext in self.extensions]) |
163 | 163 |
|
164 | | - # async def landing_page(self, **kwargs) -> stac_types.LandingPage: |
165 | | - # """Landing page. |
166 | | - |
167 | | - # Called with `GET /`. |
168 | | - |
169 | | - # Returns: |
170 | | - # API landing page, serving as an entry point to the API. |
171 | | - # """ |
172 | | - # request: Request = kwargs["request"] |
173 | | - # base_url = get_base_url(request) |
174 | | - # landing_page = self._landing_page( |
175 | | - # base_url=base_url, |
176 | | - # conformance_classes=self.conformance_classes(), |
177 | | - # extension_schemas=[], |
178 | | - # ) |
179 | | - # collections = await self.all_collections(request=kwargs["request"]) |
180 | | - # for collection in collections["collections"]: |
181 | | - # landing_page["links"].append( |
182 | | - # { |
183 | | - # "rel": Relations.child.value, |
184 | | - # "type": MimeTypes.json.value, |
185 | | - # "title": collection.get("title") or collection.get("id"), |
186 | | - # "href": urljoin(base_url, f"collections/{collection['id']}"), |
187 | | - # } |
188 | | - # ) |
189 | | - |
190 | | - # # Add OpenAPI URL |
191 | | - # landing_page["links"].append( |
192 | | - # { |
193 | | - # "rel": "service-desc", |
194 | | - # "type": "application/vnd.oai.openapi+json;version=3.0", |
195 | | - # "title": "OpenAPI service description", |
196 | | - # "href": urljoin( |
197 | | - # str(request.base_url), request.app.openapi_url.lstrip("/") |
198 | | - # ), |
199 | | - # } |
200 | | - # ) |
201 | | - |
202 | | - # # Add human readable service-doc |
203 | | - # landing_page["links"].append( |
204 | | - # { |
205 | | - # "rel": "service-doc", |
206 | | - # "type": "text/html", |
207 | | - # "title": "OpenAPI service documentation", |
208 | | - # "href": urljoin( |
209 | | - # str(request.base_url), request.app.docs_url.lstrip("/") |
210 | | - # ), |
211 | | - # } |
212 | | - # ) |
213 | | - |
214 | | - # return landing_page |
215 | | - |
216 | 164 | async def conformance(self, **kwargs) -> stac_types.Conformance: |
217 | 165 | """Conformance classes. |
218 | 166 |
|
|
0 commit comments