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