Skip to content

Commit

Permalink
[#124] adds documentation for "get single user" endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
philherbert committed Sep 14, 2020
1 parent 230fc24 commit a3da3b8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions documents/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,27 @@ paths:
items:
$ref: '#/components/schemas/User'
/user/{user_id}:
get:
summary: Get a user
tags:
- user
parameters:
- $ref: '#/components/parameters/UserId'
responses:
200:
description: OK
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/User'
403:
$ref: '#/components/responses/AdminAuthError'
500:
$ref: '#/components/responses/InternalServerError'

post:
summary: Update a user
tags:
Expand Down

0 comments on commit a3da3b8

Please sign in to comment.