docs: openapi spec for new route
parent
cf88483fee
commit
9b912db71e
@ -0,0 +1,45 @@
|
||||
get:
|
||||
tags:
|
||||
- users
|
||||
summary: Get a user's worse performing posts ("controversial")
|
||||
parameters:
|
||||
- name: userslug
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
example: admin
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: ../../../components/schemas/UserObject.yaml#/UserObjectFull
|
||||
- type: object
|
||||
properties:
|
||||
posts:
|
||||
$ref: ../../../components/schemas/PostsObject.yaml#/PostsObject
|
||||
nextStart:
|
||||
type: number
|
||||
noItemsFoundKey:
|
||||
type: string
|
||||
title:
|
||||
type: string
|
||||
showSort:
|
||||
type: boolean
|
||||
sortOptions:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
url:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
selected:
|
||||
type: boolean
|
||||
- $ref: ../../../components/schemas/Pagination.yaml#/Pagination
|
||||
- $ref: ../../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
|
||||
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
Loading…
Reference in New Issue