Skip to content

Commit

Permalink
openapi: PUT /workspace should be PUT /workspace/{workspace-id}
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Feb 14, 2022
1 parent 9fb6eb3 commit 2442139
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,18 @@ paths:
description: Workspace created
content:
application/json: {schema: {$ref: '/components/schemas/Workspace'}}

'/workspace/{workspace-id}':
put:
tags: ['workspace']
summary: Replace an existing workspace
operationId: replaceWorkspace
parameters:
- name: workspace-id
in: path
description: ID of the workspace
schema: {type: string}
required: true
requestBody:
description: OCRD-ZIP of the updated workspace
content:
Expand All @@ -292,8 +300,6 @@ paths:
description: Workspace replaced
content:
application/json: {schema: {$ref: '#/components/schemas/Workspace'}}

'/workspace/{workspace-id}':
get:
tags: ['workspace']
operationId: getWorkspace
Expand Down

0 comments on commit 2442139

Please sign in to comment.