-
-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Labels
codekitchen-soosCodeKitchen Community Song of Open-SourceCodeKitchen Community Song of Open-Sourcefeature
Description
Hi, is there anyway to specify custom fields (starting with x-) for a given route with a metadata parameter in the doc decorator?
@app.route("/compute-intermodal-routes-co2eq", methods=["GET"])
@app.doc(
summary="Compute intermodal routes CO2eq emissions",
description="This intermodal routing API endpoint ",
security=[{"api_key": []}],
metadata={"x-conf": {"lambda": {"memory_size": 1000, "concurrent_execution": -1}}},
)For now I am using spec_processor
@app.spec_processor
def get_spec(spec):
spec["paths"]["/compute-intermodal-routes-co2eq"]["get"]["x-conf"] = {
"lambda": {"memory_size": 200, "concurrent_execution": -1},
"throttling": {"rateLimit": 10, "burstLimit": 1},
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
codekitchen-soosCodeKitchen Community Song of Open-SourceCodeKitchen Community Song of Open-Sourcefeature