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'
/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'