Skip to content

Commit

Permalink
[openapi] Fix user management endpoint API specification (#603)
Browse files Browse the repository at this point in the history
- adding a new user requires POST since Dicoogle 3
- username of user to delete is passed in URL path
  • Loading branch information
Enet4 committed Sep 24, 2022
1 parent 0a5ab16 commit 185e875
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dicoogle_web_api.yaml
Expand Up @@ -108,7 +108,8 @@ paths:
- dicoogle_auth:
- user
/user:
put:
# Was PUT in Dicoogle 2
post:
tags:
- User
summary: Create a user in the system
Expand Down Expand Up @@ -151,21 +152,22 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Users"
/user/{username}:
delete:
tags:
- User
summary: Remove a user from the system
operationId: deleteUser
parameters:
- in: query
- in: path
name: username
description: The unique user name for the client
required: true
schema:
type: string
responses:
"200":
description: Successful operation
description: Operation done, returns whether a user with that name was deleted
content:
application/json:
schema:
Expand Down

0 comments on commit 185e875

Please sign in to comment.