From 78f14218d04a37c03289f66fb11a7315cec316a2 Mon Sep 17 00:00:00 2001 From: Pedro Crespo-Valero <32402063+pcrespov@users.noreply.github.com> Date: Fri, 15 Nov 2024 21:58:06 +0100 Subject: [PATCH] fixes search --- api/specs/web-server/_folders.py | 2 -- .../api/v0/openapi.yaml | 34 +++++++++---------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/api/specs/web-server/_folders.py b/api/specs/web-server/_folders.py index 5120da9b3fdb..1068a038bb90 100644 --- a/api/specs/web-server/_folders.py +++ b/api/specs/web-server/_folders.py @@ -17,7 +17,6 @@ PutFolderBodyParams, ) from models_library.generics import Envelope -from models_library.rest_pagination import PageQueryParameters from simcore_service_webserver._meta import API_VTAG from simcore_service_webserver.folders._models import ( FolderSearchQueryParams, @@ -59,7 +58,6 @@ async def list_folders( response_model=Envelope[list[FolderGet]], ) async def list_folders_full_search( - _p: Annotated[PageQueryParameters, Depends()], _q: Annotated[as_query(FolderSearchQueryParams), Depends()], ): ... diff --git a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml index 8b849e3df8a0..004d422fb202 100644 --- a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml +++ b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml @@ -2682,6 +2682,23 @@ paths: summary: List Folders Full Search operationId: list_folders_full_search parameters: + - required: false + schema: + title: Filters + type: string + description: Custom filter query parameter encoded as JSON + name: filters + in: query + - required: false + schema: + title: Order By + type: string + description: Order by field (`description|modified|name`) and direction + (`asc|desc`). The default sorting order is `{"field":"modified","direction":"desc"}`. + default: '{"field":"modified","direction":"desc"}' + example: '{"field":"some_field_name","direction":"desc"}' + name: order_by + in: query - required: false schema: title: Limit @@ -2700,23 +2717,6 @@ paths: default: 0 name: offset in: query - - required: false - schema: - title: Filters - type: string - description: Custom filter query parameter encoded as JSON - name: filters - in: query - - required: false - schema: - title: Order By - type: string - description: Order by field (`description|modified|name`) and direction - (`asc|desc`). The default sorting order is `{"field":"modified","direction":"desc"}`. - default: '{"field":"modified","direction":"desc"}' - example: '{"field":"some_field_name","direction":"desc"}' - name: order_by - in: query - required: false schema: title: Text