From 5e0764fb9aedbae1f11f0e56cdc47342db9b3700 Mon Sep 17 00:00:00 2001 From: Hamza Ali Date: Wed, 9 Sep 2020 23:04:29 +0700 Subject: [PATCH] swagger: update semantic errors --- api/swagger.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index b2fdd1d..f833ecf 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -94,10 +94,16 @@ paths: $ref: '#/components/schemas/User' /users/{username}/posts: - get: + post: tags: - User Endpoints - Posts Endpoints + parameters: + - name: username + required: true + in: path + schema: + type: string summary: Get the list of posts a user has created/submitted. requestBody: $ref: '#/components/requestBodies/Listing' @@ -118,10 +124,16 @@ paths: $ref: '#/components/responses/ServerError' /users/{username}/comments: - get: + post: tags: - User Endpoints - Comments Endpoints + parameters: + - name: username + required: true + in: path + schema: + type: string summary: Get the list of comments a user has submitted. requestBody: $ref: '#/components/requestBodies/Listing'