From a3da3b8e6be7d09243f321133d4d07afaa6f41de Mon Sep 17 00:00:00 2001 From: Phil Herbert Date: Mon, 14 Sep 2020 15:59:31 -0400 Subject: [PATCH] [#124] adds documentation for "get single user" endpoint --- documents/openapi/openapi.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/documents/openapi/openapi.yaml b/documents/openapi/openapi.yaml index e0698fbc70..d7afe78225 100644 --- a/documents/openapi/openapi.yaml +++ b/documents/openapi/openapi.yaml @@ -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: