Skip to main content

api.build_time

Build-time configuration document slice.

This endpoint returns one complete build-time document for either the API or the website target. Each target has its own dedicated response model so callers can understand exactly which keys they should expect.

get_build_time

@router.get(
"/build-time",
response_model=ApiBuildTimeConfigDocumentResponse
| WebsiteBuildTimeConfigDocumentResponse,
)
def get_build_time(
req: Request,
for_target: Annotated[str, Query(alias="for")] = "",
label: str = ""
) -> ApiBuildTimeConfigDocumentResponse | WebsiteBuildTimeConfigDocumentResponse | JSONResponse

Return the build-time configuration document for the requested caller target.

// was this page useful?