Skip to content

Commit

Permalink
fix schema endpoint in Flask and Starlette
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Apr 3, 2024
1 parent df05295 commit e72d4ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pygeoapi/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ def collection_schema(collection_id):
:returns: HTTP response
"""

return execute_from_flask(itemtypes_api.get_collection_schema, request,
collection_id)
return get_response(api_.get_collection_schema(request, collection_id))


@BLUEPRINT.route('/collections/<path:collection_id>/queryables')
Expand Down
5 changes: 2 additions & 3 deletions pygeoapi/starlette_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ async def collection_schema(request: Request, collection_id=None):
if 'collection_id' in request.path_params:
collection_id = request.path_params['collection_id']

return await execute_from_starlette(
itemtypes_api.get_collection_schema, request, collection_id
)
return await get_response(api_.get_collection_schema, request,
collection_id)


async def collection_queryables(request: Request, collection_id=None):
Expand Down

0 comments on commit e72d4ba

Please sign in to comment.