Skip to content

Commit

Permalink
add path to endpoint register (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerRichard authored Jul 2, 2024
1 parent 0262a88 commit f18990f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions openeo_fastapi/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def register_download_file(self):
"""Register endpoint for downloading a specific file (GET /files/{path})."""
self.router.add_api_route(
name="download_file",
path=f"/{self.client.settings.OPENEO_VERSION}/files" + "/{path}",
path=f"/{self.client.settings.OPENEO_VERSION}/files" + "/{path:path}",
response_model=None,
response_model_exclude_unset=False,
response_model_exclude_none=True,
Expand All @@ -392,7 +392,7 @@ def register_upload_file(self):
"""Register endpoint for uploading a new file (PUT /files/{path})."""
self.router.add_api_route(
name="upload_file",
path=f"/{self.client.settings.OPENEO_VERSION}/files" + "/{path}",
path=f"/{self.client.settings.OPENEO_VERSION}/files" + "/{path:path}",
response_model=None,
response_model_exclude_unset=False,
response_model_exclude_none=True,
Expand All @@ -404,7 +404,7 @@ def register_delete_file(self):
"""Register endpoint for deleting a new file (DELETE /files/{path})."""
self.router.add_api_route(
name="delete_file",
path=f"/{self.client.settings.OPENEO_VERSION}/files" + "/{path}",
path=f"/{self.client.settings.OPENEO_VERSION}/files" + "/{path:path}",
response_model=None,
response_model_exclude_unset=False,
response_model_exclude_none=True,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openeo-fastapi"
version = "2024.5.3"
version = "2024.7.1"
description = "FastApi implementation conforming to the OpenEO Api specification."
authors = ["Sean Hoyal <sean.hoyal@external.eodc.eu>"]
readme = "README.md"
Expand Down

0 comments on commit f18990f

Please sign in to comment.