Skip to content

Commit

Permalink
fix: add api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
DG-KFuglsang committed Sep 18, 2024
1 parent b156a07 commit 33b0f6f
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
27 changes: 27 additions & 0 deletions openapi_specs/SOFI/SOFI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ paths:
tags:
- workspaces
x-openapi-router-controller: web.src.SAP.generated.controllers.workspaces_controller
/workspace/clone:
post:
operationId: clone_workspace
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CloneWorkspace"
responses:
'204':
description: "Workspace cloned."
tags:
- workspaces
x-openapi-router-controller: web.src.SAP.generated.controllers.workspaces_controller
/workspace/{workspace_id}/{sample_id}:
delete:
description: Delete sample from workspace
Expand Down Expand Up @@ -1550,6 +1564,19 @@ components:
required:
- name

CloneWorkspace:
properties:
name:
type: string
title: Name
id:
type: string
title: Id
type: object
required:
- name
- id

UpdateWorkspace:
properties:
samples:
Expand Down
27 changes: 27 additions & 0 deletions web/openapi_specs/SOFI/SOFI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ paths:
tags:
- workspaces
x-openapi-router-controller: web.src.SAP.generated.controllers.workspaces_controller
/workspace/clone:
post:
operationId: clone_workspace
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/CloneWorkspace"
responses:
'204':
description: "Workspace cloned."
tags:
- workspaces
x-openapi-router-controller: web.src.SAP.generated.controllers.workspaces_controller
/workspace/{workspace_id}/{sample_id}:
delete:
description: Delete sample from workspace
Expand Down Expand Up @@ -1550,6 +1564,19 @@ components:
required:
- name

CloneWorkspace:
properties:
name:
type: string
title: Name
id:
type: string
title: Id
type: object
required:
- name
- id

UpdateWorkspace:
properties:
samples:
Expand Down
29 changes: 29 additions & 0 deletions web/src/SAP/generated/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,20 @@ paths:
tags:
- user
x-openapi-router-controller: web.src.SAP.generated.controllers.user_controller
/workspace/clone:
post:
operationId: clone_workspace
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CloneWorkspace'
responses:
"204":
description: Workspace cloned.
tags:
- workspaces
x-openapi-router-controller: web.src.SAP.generated.controllers.workspaces_controller
/workspace/{workspace_id}/{sample_id}:
delete:
description: Delete sample from workspace
Expand Down Expand Up @@ -1555,6 +1569,21 @@ components:
required:
- name
type: object
CloneWorkspace:
example:
name: name
id: id
properties:
name:
title: Name
type: string
id:
title: Id
type: string
required:
- id
- name
type: object
UpdateWorkspace:
example:
samples:
Expand Down

0 comments on commit 33b0f6f

Please sign in to comment.