Setting the id
for a catalog seems really hard
#605
-
I have a simple StacAPI custom app.py going, but I can't find an easy way to customise the LandingPage Here's what I have so far: api = StacApi(
title="Digital Earth Pacific STAC API",
description="A SpatioTemporal Asset Catalog (STAC) API for Digital Earth Pacific",
extensions=[ContextExtension()],
settings=settings,
client=CoreCrudClient(post_request_model=post_request_model),
search_get_request_model=get_request_model,
response_class=ORJSONResponse,
) The PC folks have a huge amount of code customising the client, I think, here: https://github.com/microsoft/planetary-computer-apis/blob/b0471ea9f5e84268294b48bc22432dba93907331/pcstac/pcstac/client.py#L301 and that's where they set it. Surely it's something everyone wants to change though, so shouldn't it be easier to set? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The CoreCrudClient(post_request_model=post_request_model, landing_page_id="my-custom-id") should get you what you want? |
Beta Was this translation helpful? Give feedback.
The
CoreCrudClient
has alanding_page_id
attribute from theLandingPageMixin
, soshould get you what you want?