From a0fc5a132ee50667d67bca8e495054f3ad80bfb0 Mon Sep 17 00:00:00 2001 From: yhua Date: Fri, 18 Nov 2016 17:05:11 +0800 Subject: [PATCH] add api/users/current to swagger.yaml --- docs/swagger.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 280916675..ea0774cbf 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -507,6 +507,21 @@ paths: description: User registration can only be used by admin role user when self-registration is off. 500: description: Unexpected internal errors. + /users/current: + get: + summary: Get current user info. + description: | + This endpoint is to get the current user infomation. + tags: + - Products + responses: + 200: + description: Get current user information successfully. + in: body + schema: + $ref: '#/definitions/User' + 401: + description: User need to log in first. /users/{user_id}: put: summary: Update a registered user to change his profile.