Repository navigation
Setting the id for a catalog seems really hard
#605
Answered
by
gadomski
alexgleith
asked this question in
Q&A
|
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? |
Answered by
gadomski
Oct 3, 2023
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? |
2 replies
Answer selected by
alexgleith
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
CoreCrudClienthas alanding_page_idattribute from theLandingPageMixin, soshould get you what you want?