Skip to content

Commit f3cea35

Browse files
committed
updates OAS
1 parent 0666c91 commit f3cea35

File tree

2 files changed

+76
-192
lines changed

2 files changed

+76
-192
lines changed

api/specs/web-server/_trash.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from enum import Enum
88

9-
from fastapi import APIRouter
9+
from fastapi import APIRouter, status
1010
from models_library.projects import ProjectID
1111
from simcore_service_webserver._meta import API_VTAG
1212

@@ -18,6 +18,7 @@
1818

1919
@router.delete(
2020
"/trash",
21+
status_code=status.HTTP_204_NO_CONTENT,
2122
)
2223
def empty_trash():
2324
...
@@ -31,14 +32,19 @@ def empty_trash():
3132
@router.post(
3233
"/projects/{project_uuid}:trash",
3334
tags=_extra_tags,
35+
status_code=status.HTTP_204_NO_CONTENT,
3436
)
3537
def trash_project(
3638
project_uuid: ProjectID,
3739
):
3840
...
3941

4042

41-
@router.post("/projects/{project_uuid}:untrash", tags=_extra_tags)
43+
@router.post(
44+
"/projects/{project_uuid}:untrash",
45+
tags=_extra_tags,
46+
status_code=status.HTTP_204_NO_CONTENT,
47+
)
4248
def untrash_project(
4349
project_uuid: ProjectID,
4450
):

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

Lines changed: 68 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ paths:
26512651
content:
26522652
application/json:
26532653
schema:
2654-
$ref: '#/components/schemas/_folders__Envelope[FolderGet]'
2654+
$ref: '#/components/schemas/Envelope_FolderGet_'
26552655
/v0/folders/{folder_id}:
26562656
get:
26572657
tags:
@@ -2673,7 +2673,7 @@ paths:
26732673
content:
26742674
application/json:
26752675
schema:
2676-
$ref: '#/components/schemas/_folders__Envelope[FolderGet]'
2676+
$ref: '#/components/schemas/Envelope_FolderGet_'
26772677
put:
26782678
tags:
26792679
- folders
@@ -2700,7 +2700,7 @@ paths:
27002700
content:
27012701
application/json:
27022702
schema:
2703-
$ref: '#/components/schemas/_folders__Envelope[FolderGet]'
2703+
$ref: '#/components/schemas/Envelope_FolderGet_'
27042704
delete:
27052705
tags:
27062706
- folders
@@ -5369,11 +5369,8 @@ paths:
53695369
summary: Empty Trash
53705370
operationId: empty_trash
53715371
responses:
5372-
'200':
5372+
'204':
53735373
description: Successful Response
5374-
content:
5375-
application/json:
5376-
schema: {}
53775374
/v0/projects/{project_uuid}:trash:
53785375
post:
53795376
tags:
@@ -5390,12 +5387,8 @@ paths:
53905387
name: project_uuid
53915388
in: path
53925389
responses:
5393-
'200':
5390+
'204':
53945391
description: Successful Response
5395-
content:
5396-
application/json:
5397-
schema:
5398-
$ref: '#/components/schemas/Envelope_ProjectGet_'
53995392
/v0/projects/{project_uuid}:untrash:
54005393
post:
54015394
tags:
@@ -5412,56 +5405,8 @@ paths:
54125405
name: project_uuid
54135406
in: path
54145407
responses:
5415-
'200':
5416-
description: Successful Response
5417-
content:
5418-
application/json:
5419-
schema: {}
5420-
/v0/folders/{folder_id}:trash:
5421-
post:
5422-
tags:
5423-
- trash
5424-
- folders
5425-
summary: Trash Folder
5426-
operationId: trash_folder
5427-
parameters:
5428-
- required: true
5429-
schema:
5430-
title: Folder Id
5431-
exclusiveMinimum: true
5432-
type: integer
5433-
minimum: 0
5434-
name: folder_id
5435-
in: path
5436-
responses:
5437-
'200':
5438-
description: Successful Response
5439-
content:
5440-
application/json:
5441-
schema:
5442-
$ref: '#/components/schemas/_trash__Envelope[FolderGet]'
5443-
/v0/folders/{folder_id}:untrash:
5444-
post:
5445-
tags:
5446-
- trash
5447-
- folders
5448-
summary: Untrash Folder
5449-
operationId: untrash_folder
5450-
parameters:
5451-
- required: true
5452-
schema:
5453-
title: Folder Id
5454-
exclusiveMinimum: true
5455-
type: integer
5456-
minimum: 0
5457-
name: folder_id
5458-
in: path
5459-
responses:
5460-
'200':
5408+
'204':
54615409
description: Successful Response
5462-
content:
5463-
application/json:
5464-
schema: {}
54655410
/v0/repos/projects:
54665411
get:
54675412
tags:
@@ -7319,6 +7264,14 @@ components:
73197264
$ref: '#/components/schemas/FileUploadSchema'
73207265
error:
73217266
title: Error
7267+
Envelope_FolderGet_:
7268+
title: Envelope[FolderGet]
7269+
type: object
7270+
properties:
7271+
data:
7272+
$ref: '#/components/schemas/FolderGet'
7273+
error:
7274+
title: Error
73227275
Envelope_GetCreditPrice_:
73237276
title: Envelope[GetCreditPrice]
73247277
type: object
@@ -7876,7 +7829,7 @@ components:
78767829
title: Data
78777830
type: array
78787831
items:
7879-
$ref: '#/components/schemas/models_library__api_schemas_webserver__folders_v2__FolderGet'
7832+
$ref: '#/components/schemas/FolderGet'
78807833
error:
78817834
title: Error
78827835
Envelope_list_models_library.api_schemas_webserver.groups.GroupUserGet__:
@@ -8487,6 +8440,59 @@ components:
84878440
format: uri
84888441
links:
84898442
$ref: '#/components/schemas/FileUploadLinks'
8443+
FolderGet:
8444+
title: FolderGet
8445+
required:
8446+
- folderId
8447+
- name
8448+
- createdAt
8449+
- modifiedAt
8450+
- owner
8451+
- myAccessRights
8452+
type: object
8453+
properties:
8454+
folderId:
8455+
title: Folderid
8456+
exclusiveMinimum: true
8457+
type: integer
8458+
minimum: 0
8459+
parentFolderId:
8460+
title: Parentfolderid
8461+
exclusiveMinimum: true
8462+
type: integer
8463+
minimum: 0
8464+
name:
8465+
title: Name
8466+
type: string
8467+
createdAt:
8468+
title: Createdat
8469+
type: string
8470+
format: date-time
8471+
modifiedAt:
8472+
title: Modifiedat
8473+
type: string
8474+
format: date-time
8475+
owner:
8476+
title: Owner
8477+
exclusiveMinimum: true
8478+
type: integer
8479+
minimum: 0
8480+
workspaceId:
8481+
title: Workspaceid
8482+
exclusiveMinimum: true
8483+
type: integer
8484+
minimum: 0
8485+
myAccessRights:
8486+
$ref: '#/components/schemas/models_library__access_rights__AccessRights'
8487+
trashedAt:
8488+
title: Trashedat
8489+
type: string
8490+
format: date-time
8491+
trashedBy:
8492+
title: Trashedby
8493+
maxLength: 100
8494+
minLength: 1
8495+
type: string
84908496
GenerateInvitation:
84918497
title: GenerateInvitation
84928498
required:
@@ -10380,11 +10386,6 @@ components:
1038010386
title: Trashedat
1038110387
type: string
1038210388
format: date-time
10383-
trashedBy:
10384-
title: Trashedby
10385-
maxLength: 100
10386-
minLength: 1
10387-
type: string
1038810389
ProjectGroupGet:
1038910390
title: ProjectGroupGet
1039010391
required:
@@ -10660,11 +10661,6 @@ components:
1066010661
title: Trashedat
1066110662
type: string
1066210663
format: date-time
10663-
trashedBy:
10664-
title: Trashedby
10665-
maxLength: 100
10666-
minLength: 1
10667-
type: string
1066810664
ProjectLocked:
1066910665
title: ProjectLocked
1067010666
required:
@@ -13213,22 +13209,6 @@ components:
1321313209
title: Delete
1321413210
type: boolean
1321513211
additionalProperties: false
13216-
_folders__Envelope[FolderGet]:
13217-
title: Envelope[FolderGet]
13218-
type: object
13219-
properties:
13220-
data:
13221-
$ref: '#/components/schemas/models_library__api_schemas_webserver__folders_v2__FolderGet'
13222-
error:
13223-
title: Error
13224-
_trash__Envelope[FolderGet]:
13225-
title: Envelope[FolderGet]
13226-
type: object
13227-
properties:
13228-
data:
13229-
$ref: '#/components/schemas/models_library__api_schemas_webserver__folders__FolderGet'
13230-
error:
13231-
title: Error
1323213212
models_library__access_rights__AccessRights:
1323313213
title: AccessRights
1323413214
required:
@@ -13250,108 +13230,6 @@ components:
1325013230
type: boolean
1325113231
description: has deletion rights
1325213232
additionalProperties: false
13253-
models_library__api_schemas_webserver__folders__FolderGet:
13254-
title: FolderGet
13255-
required:
13256-
- folderId
13257-
- name
13258-
- description
13259-
- createdAt
13260-
- modifiedAt
13261-
- owner
13262-
- myAccessRights
13263-
- accessRights
13264-
type: object
13265-
properties:
13266-
folderId:
13267-
title: Folderid
13268-
exclusiveMinimum: true
13269-
type: integer
13270-
minimum: 0
13271-
parentFolderId:
13272-
title: Parentfolderid
13273-
exclusiveMinimum: true
13274-
type: integer
13275-
minimum: 0
13276-
name:
13277-
title: Name
13278-
type: string
13279-
description:
13280-
title: Description
13281-
type: string
13282-
createdAt:
13283-
title: Createdat
13284-
type: string
13285-
format: date-time
13286-
modifiedAt:
13287-
title: Modifiedat
13288-
type: string
13289-
format: date-time
13290-
owner:
13291-
title: Owner
13292-
exclusiveMinimum: true
13293-
type: integer
13294-
minimum: 0
13295-
myAccessRights:
13296-
$ref: '#/components/schemas/models_library__projects_access__AccessRights'
13297-
accessRights:
13298-
title: Accessrights
13299-
type: object
13300-
additionalProperties:
13301-
$ref: '#/components/schemas/models_library__projects_access__AccessRights'
13302-
models_library__api_schemas_webserver__folders_v2__FolderGet:
13303-
title: FolderGet
13304-
required:
13305-
- folderId
13306-
- name
13307-
- createdAt
13308-
- modifiedAt
13309-
- owner
13310-
- myAccessRights
13311-
type: object
13312-
properties:
13313-
folderId:
13314-
title: Folderid
13315-
exclusiveMinimum: true
13316-
type: integer
13317-
minimum: 0
13318-
parentFolderId:
13319-
title: Parentfolderid
13320-
exclusiveMinimum: true
13321-
type: integer
13322-
minimum: 0
13323-
name:
13324-
title: Name
13325-
type: string
13326-
createdAt:
13327-
title: Createdat
13328-
type: string
13329-
format: date-time
13330-
modifiedAt:
13331-
title: Modifiedat
13332-
type: string
13333-
format: date-time
13334-
owner:
13335-
title: Owner
13336-
exclusiveMinimum: true
13337-
type: integer
13338-
minimum: 0
13339-
workspaceId:
13340-
title: Workspaceid
13341-
exclusiveMinimum: true
13342-
type: integer
13343-
minimum: 0
13344-
myAccessRights:
13345-
$ref: '#/components/schemas/models_library__access_rights__AccessRights'
13346-
trashedAt:
13347-
title: Trashedat
13348-
type: string
13349-
format: date-time
13350-
trashedBy:
13351-
title: Trashedby
13352-
maxLength: 100
13353-
minLength: 1
13354-
type: string
1335513233
models_library__projects_access__AccessRights:
1335613234
title: AccessRights
1335713235
required:

0 commit comments

Comments
 (0)