Skip to content

Commit 8cd8e7e

Browse files
author
Andrei Neagu
committed
rename
1 parent 1277e0a commit 8cd8e7e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

api/specs/web-server/_storage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ async def is_completed_upload_file(
214214

215215

216216
@router.post(
217-
"/storage/locations/{location_id}/export-data",
217+
"/storage/locations/{location_id}/data-export",
218218
response_model=Envelope[TaskGet],
219-
name="export_data",
219+
name="data_export",
220220
description="Export data",
221221
responses=_data_export_responses,
222222
)
223-
async def export_data(data_export: DataExportPost, location_id: LocationID):
223+
async def data_export(data_export: DataExportPost, location_id: LocationID):
224224
"""Trigger data export. Returns async job id for getting status and results"""

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6495,13 +6495,13 @@ paths:
64956495
application/json:
64966496
schema:
64976497
$ref: '#/components/schemas/Envelope_FileUploadCompleteFutureResponse_'
6498-
/v0/storage/locations/{location_id}/export-data:
6498+
/v0/storage/locations/{location_id}/data-export:
64996499
post:
65006500
tags:
65016501
- storage
6502-
summary: Export Data
6502+
summary: Data Export
65036503
description: Export data
6504-
operationId: export_data
6504+
operationId: data_export
65056505
parameters:
65066506
- name: location_id
65076507
in: path

services/web/server/src/simcore_service_webserver/storage/_rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@ class _PathParams(BaseModel):
435435

436436

437437
@routes.post(
438-
_storage_locations_prefix + "/{location_id}/export-data", name="export_data"
438+
_storage_locations_prefix + "/{location_id}/data-export", name="data_export"
439439
)
440440
@login_required
441441
@permission_required("storage.files.*")
442442
@handle_data_export_exceptions
443-
async def export_data(request: web.Request) -> web.Response:
443+
async def data_export(request: web.Request) -> web.Response:
444444
class _PathParams(BaseModel):
445445
location_id: LocationID
446446

services/web/server/tests/unit/with_dbs/01/storage/test_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ async def test_data_export(
415415
paths=[f"{faker.uuid4()}/{faker.uuid4()}/{faker.file_name()}"]
416416
)
417417
response = await client.post(
418-
f"/{API_VERSION}/storage/locations/0/export-data", data=_body.model_dump_json()
418+
f"/{API_VERSION}/storage/locations/0/data-export", data=_body.model_dump_json()
419419
)
420420
assert response.status == expected_status
421421
if response.status == status.HTTP_202_ACCEPTED:
@@ -622,7 +622,7 @@ async def test_get_async_job_links(
622622
paths=[f"{faker.uuid4()}/{faker.uuid4()}/{faker.file_name()}"]
623623
)
624624
response = await client.post(
625-
f"/{API_VERSION}/storage/locations/0/export-data", data=_body.model_dump_json()
625+
f"/{API_VERSION}/storage/locations/0/data-export", data=_body.model_dump_json()
626626
)
627627
assert response.status == status.HTTP_202_ACCEPTED
628628
response_body_data = Envelope[TaskGet].model_validate(await response.json()).data

0 commit comments

Comments
 (0)