diff --git a/openeo_fastapi/api/app.py b/openeo_fastapi/api/app.py index 6257e1a..983d300 100644 --- a/openeo_fastapi/api/app.py +++ b/openeo_fastapi/api/app.py @@ -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, @@ -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, @@ -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, diff --git a/pyproject.toml b/pyproject.toml index 9141322..b4eeeaf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"