Skip to content

Commit bf305c5

Browse files
committed
Add openAPI docs
1 parent dd275d9 commit bf305c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cdk-deployment/lambda/lambda.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ def custom_openapi():
6767
version=2.0,
6868
routes=app.routes,
6969
)
70+
# openapi_schema["paths"]["/url"]["get"] = {
71+
# "description": "This endpoint supports validation of STAC file. Use stac_url as the query parameter.",
72+
# }
73+
# openapi_schema["paths"]["/url"]["post"] = {
74+
# "description": "This endpoint supports validation of a STAC file. Post your data as JSON with stac_url as the key and your path as the value.",
75+
# }
7076
openapi_schema["paths"]["/json"]["post"] = {
7177
"description": "This endpoint supports validation of STAC JSON directly. Post your data as JSON.",
7278
}

0 commit comments

Comments
 (0)