You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mv-api-spec/openapi/paths/users.yaml

47 lines
1.0 KiB

#
get:
operationId: get-users
summary: Gets all users
tags:
- User Management
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: ../components/schemas/user.yaml
security:
- adminAuth: []
post:
operationId: create-user
summary: Creates an user
tags:
- User Management
requestBody:
required: true
content:
application/json:
schema:
$ref: ../components/schemas/user.yaml
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: Id of the created user.
links:
get-user:
$ref: ../components/links/get-user.yaml
update-user:
$ref: ../components/links/update-user.yaml
delete-user:
$ref: ../components/links/delete-user.yaml