1- """ Helper script to automatically generate OAS
1+ """Helper script to automatically generate OAS
22
33This OAS are the source of truth
44"""
3131from models_library .rest_pagination import Page
3232from pydantic import BaseModel
3333from simcore_service_webserver ._meta import API_VTAG
34- from simcore_service_webserver .projects ._common . exceptions_handlers import (
34+ from simcore_service_webserver .projects ._controller . _rest_exceptions import (
3535 _TO_HTTP_ERROR_MAP ,
3636)
37- from simcore_service_webserver .projects ._common .models import ProjectPathParams
38- from simcore_service_webserver .projects ._crud_handlers import ProjectCreateQueryParams
39- from simcore_service_webserver .projects ._crud_handlers_models import (
37+ from simcore_service_webserver .projects ._controller ._rest_schemas import (
38+ ProjectPathParams ,
39+ )
40+ from simcore_service_webserver .projects ._controller .projects_rest_schemas import (
4041 ProjectActiveQueryParams ,
42+ ProjectCreateQueryParams ,
4143 ProjectsListQueryParams ,
4244 ProjectsSearchQueryParams ,
4345)
@@ -83,8 +85,7 @@ async def create_project(
8385 _h : Annotated [_ProjectCreateHeaderParams , Depends ()],
8486 _query : Annotated [ProjectCreateQueryParams , Depends ()],
8587 _body : ProjectCreateNew | ProjectCopyOverride ,
86- ):
87- ...
88+ ): ...
8889
8990
9091@router .get (
@@ -93,8 +94,7 @@ async def create_project(
9394)
9495async def list_projects (
9596 _query : Annotated [as_query (ProjectsListQueryParams ), Depends ()],
96- ):
97- ...
97+ ): ...
9898
9999
100100@router .get (
@@ -103,8 +103,7 @@ async def list_projects(
103103)
104104async def get_active_project (
105105 _query : Annotated [ProjectActiveQueryParams , Depends ()],
106- ):
107- ...
106+ ): ...
108107
109108
110109@router .get (
@@ -113,8 +112,7 @@ async def get_active_project(
113112)
114113async def get_project (
115114 _path : Annotated [ProjectPathParams , Depends ()],
116- ):
117- ...
115+ ): ...
118116
119117
120118@router .patch (
@@ -125,8 +123,7 @@ async def get_project(
125123async def patch_project (
126124 _path : Annotated [ProjectPathParams , Depends ()],
127125 _body : ProjectPatch ,
128- ):
129- ...
126+ ): ...
130127
131128
132129@router .delete (
@@ -135,8 +132,7 @@ async def patch_project(
135132)
136133async def delete_project (
137134 _path : Annotated [ProjectPathParams , Depends ()],
138- ):
139- ...
135+ ): ...
140136
141137
142138@router .post (
@@ -146,8 +142,7 @@ async def delete_project(
146142)
147143async def clone_project (
148144 _path : Annotated [ProjectPathParams , Depends ()],
149- ):
150- ...
145+ ): ...
151146
152147
153148@router .get (
@@ -156,8 +151,7 @@ async def clone_project(
156151)
157152async def list_projects_full_search (
158153 _query : Annotated [as_query (ProjectsSearchQueryParams ), Depends ()],
159- ):
160- ...
154+ ): ...
161155
162156
163157@router .get (
@@ -167,5 +161,4 @@ async def list_projects_full_search(
167161)
168162async def get_project_inactivity (
169163 _path : Annotated [ProjectPathParams , Depends ()],
170- ):
171- ...
164+ ): ...
0 commit comments