swagger: update semantic errors

master
ALI Hamza 2020-09-09 23:04:29 +07:00
parent 818d24e29d
commit 5e0764fb9a
Signed by: hamza
GPG Key ID: 22473A32291F8CB6
1 changed files with 14 additions and 2 deletions

@ -94,10 +94,16 @@ paths:
$ref: '#/components/schemas/User' $ref: '#/components/schemas/User'
/users/{username}/posts: /users/{username}/posts:
get: post:
tags: tags:
- User Endpoints - User Endpoints
- Posts Endpoints - Posts Endpoints
parameters:
- name: username
required: true
in: path
schema:
type: string
summary: Get the list of posts a user has created/submitted. summary: Get the list of posts a user has created/submitted.
requestBody: requestBody:
$ref: '#/components/requestBodies/Listing' $ref: '#/components/requestBodies/Listing'
@ -118,10 +124,16 @@ paths:
$ref: '#/components/responses/ServerError' $ref: '#/components/responses/ServerError'
/users/{username}/comments: /users/{username}/comments:
get: post:
tags: tags:
- User Endpoints - User Endpoints
- Comments Endpoints - Comments Endpoints
parameters:
- name: username
required: true
in: path
schema:
type: string
summary: Get the list of comments a user has submitted. summary: Get the list of comments a user has submitted.
requestBody: requestBody:
$ref: '#/components/requestBodies/Listing' $ref: '#/components/requestBodies/Listing'