description: 'levels: read, write, maintain, dev get their own information without a name property specified, level:admin can get any user using the name parameter'
tags:
- /user
security:
- BasicAuth:[]
responses:
200:
description:user details
content:
application/json:
schema:
type:array
items:
$ref:'oas.yaml#/components/schemas/User'
400:
$ref:'oas.yaml#/components/responses/400'
401:
$ref:'oas.yaml#/components/responses/401'
403:
$ref:'oas.yaml#/components/responses/403'
404:
$ref:'oas.yaml#/components/responses/404'
500:
$ref:'oas.yaml#/components/responses/500'
put:
summary:TODO change user details
description: 'levels: read, write, maintain, dev can change their own information (except level) without a name property specified, level:admin can change any user using the name parameter'
tags:
- /user
requestBody:
required:true
content:
application/json:
schema:
$ref:'oas.yaml#/components/schemas/User'
responses:
200:
description:user details
content:
application/json:
schema:
type:array
items:
$ref:'oas.yaml#/components/schemas/User'
400:
$ref:'oas.yaml#/components/responses/400'
401:
$ref:'oas.yaml#/components/responses/401'
403:
$ref:'oas.yaml#/components/responses/403'
404:
$ref:'oas.yaml#/components/responses/404'
500:
$ref:'oas.yaml#/components/responses/500'
delete:
summary:TODO delete user
description: 'levels: read, write, maintain, dev can delete their own account, level:admin can delete any user using the name parameter'