File tree Expand file tree Collapse file tree 2 files changed +56
-6
lines changed
services/web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 2 files changed +56
-6
lines changed Original file line number Diff line number Diff line change 77from typing import Annotated
88
99from fastapi import APIRouter , Depends , status
10+ from models_library .api_schemas_webserver .groups import ProjectShare
1011from models_library .generics import Envelope
1112from simcore_service_webserver ._meta import API_VTAG
1213from simcore_service_webserver .projects ._controller ._rest_schemas import (
1617 ProjectShareAccepted ,
1718 _ProjectsGroupsBodyParams ,
1819 _ProjectsGroupsPathParams ,
19- _ProjectShare ,
2020)
2121from simcore_service_webserver .projects ._groups_service import ProjectGroupGet
2222
3838)
3939async def share_project (
4040 _path : Annotated [ProjectPathParams , Depends ()],
41- _body : _ProjectShare ,
41+ _body : ProjectShare ,
4242): ...
4343
4444
Original file line number Diff line number Diff line change @@ -4561,14 +4561,15 @@ paths:
45614561 content :
45624562 application/json :
45634563 schema :
4564- $ref : ' #/components/schemas/_ProjectsGroupsBodyParams '
4564+ $ref : ' #/components/schemas/ProjectShare '
45654565 responses :
4566- ' 201 ' :
4567- description : Successful Response
4566+ ' 202 ' :
4567+ description : The request to share the project has been accepted, but the
4568+ actual sharing process has to be confirmd.
45684569 content :
45694570 application/json :
45704571 schema :
4571- $ref : ' #/components/schemas/Envelope_ProjectGroupGet_ '
4572+ $ref : ' #/components/schemas/Envelope_ProjectShareAccepted_ '
45724573 /v0/projects/{project_id}/groups/{group_id} :
45734574 post :
45744575 tags :
@@ -9456,6 +9457,19 @@ components:
94569457 title : Error
94579458 type : object
94589459 title : Envelope[ProjectNodeServicesGet]
9460+ Envelope_ProjectShareAccepted_ :
9461+ properties :
9462+ data :
9463+ anyOf :
9464+ - $ref : ' #/components/schemas/ProjectShareAccepted'
9465+ - type : ' null'
9466+ error :
9467+ anyOf :
9468+ - {}
9469+ - type : ' null'
9470+ title : Error
9471+ type : object
9472+ title : Envelope[ProjectShareAccepted]
94599473 Envelope_ProjectState_ :
94609474 properties :
94619475 data :
@@ -13955,6 +13969,42 @@ components:
1395513969 required :
1395613970 - value
1395713971 title : ProjectRunningState
13972+ ProjectShare :
13973+ properties :
13974+ shareeEmail :
13975+ type : string
13976+ format : email
13977+ title : Shareeemail
13978+ read :
13979+ type : boolean
13980+ title : Read
13981+ write :
13982+ type : boolean
13983+ title : Write
13984+ delete :
13985+ type : boolean
13986+ title : Delete
13987+ type : object
13988+ required :
13989+ - shareeEmail
13990+ - read
13991+ - write
13992+ - delete
13993+ title : ProjectShare
13994+ ProjectShareAccepted :
13995+ properties :
13996+ shareeEmail :
13997+ type : string
13998+ format : email
13999+ title : Shareeemail
14000+ confirmationLink :
14001+ type : string
14002+ title : Confirmationlink
14003+ type : object
14004+ required :
14005+ - shareeEmail
14006+ - confirmationLink
14007+ title : ProjectShareAccepted
1395814008 ProjectState :
1395914009 properties :
1396014010 locked :
You can’t perform that action at this time.
0 commit comments