Archived
2

added /user DELETE route

This commit is contained in:
VLE2FE
2020-04-27 15:10:14 +02:00
parent 1eff39bb16
commit 5a911a455b
6 changed files with 239 additions and 73 deletions

View File

@ -43,7 +43,7 @@
500:
$ref: 'oas.yaml#/components/responses/500'
put:
summary: TODO change user details
summary: change user details
description: 'Auth: basic, levels: read, write, maintain, admin'
tags:
- /user
@ -85,7 +85,7 @@
500:
$ref: 'oas.yaml#/components/responses/500'
delete:
summary: TODO delete user
summary: delete user
description: 'Auth: basic, levels: read, write, maintain, admin'
tags:
- /user
@ -94,12 +94,8 @@
responses:
200:
$ref: 'oas.yaml#/components/responses/Ok'
400:
$ref: 'oas.yaml#/components/responses/400'
401:
$ref: 'oas.yaml#/components/responses/401'
403:
$ref: 'oas.yaml#/components/responses/403'
500:
$ref: 'oas.yaml#/components/responses/500'
/user/{name}:
@ -128,7 +124,7 @@
500:
$ref: 'oas.yaml#/components/responses/500'
put:
summary: TODO change user details
summary: change user details
description: 'Auth: basic, levels: admin'
tags:
- /user
@ -158,7 +154,7 @@
500:
$ref: 'oas.yaml#/components/responses/500'
delete:
summary: TODO delete user
summary: delete user
description: 'Auth: basic, levels: admin'
tags:
- /user
@ -167,8 +163,6 @@
responses:
200:
$ref: 'oas.yaml#/components/responses/Ok'
400:
$ref: 'oas.yaml#/components/responses/400'
401:
$ref: 'oas.yaml#/components/responses/401'
403:
@ -179,7 +173,7 @@
$ref: 'oas.yaml#/components/responses/500'
/user/key:
get:
summary: TODO get API key for the user
summary: get API key for the user
description: 'Auth: basic, levels: read, write, maintain, dev, admin'
tags:
- /user