feat: openapi component

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 9987813f30
commit 1af5507ac7

@ -33,6 +33,73 @@ tags:
description: Disparate method of categorizing topics
- name: shorthand
description: Convenience and utility routes for accessing other part of the API
components:
schemas:
CommonProps:
type: object
properties:
loggedIn:
type: boolean
relative_path:
type: string
url:
type: string
bodyClass:
type: string
_header:
type: object
properties:
tags:
type: object
properties:
meta:
type: array
items:
type: object
properties:
name:
type: string
content:
type: string
noEscape:
type: boolean
property:
type: string
required:
- name
- content
- noEscape
- property
link:
type: array
items:
type: object
properties:
rel:
type: string
type:
type: string
href:
type: string
title:
type: string
sizes:
type: string
required:
- rel
- href
- type
- sizes
widgets:
type: object
properties:
footer:
type: array
items:
type: object
properties:
html:
type: string
paths:
/api/:
get:
@ -45,7 +112,8 @@ paths:
content:
application/json:
schema:
type: object
allOf:
- type: object
properties:
title:
type: string
@ -375,10 +443,6 @@ paths:
- posts
- teaser
- imageClass
loggedIn:
type: boolean
relative_path:
type: string
template:
type: object
properties:
@ -386,10 +450,6 @@ paths:
type: string
categories:
type: boolean
url:
type: string
bodyClass:
type: string
topics:
type: array
items:
@ -612,83 +672,7 @@ paths:
type: number
enableCarouselPagination:
type: number
_header:
type: object
properties:
tags:
type: object
properties:
meta:
type: array
items:
type: object
properties:
name:
type: string
content:
type: string
noEscape:
type: boolean
property:
type: string
required:
- name
- content
- noEscape
- property
link:
type: array
items:
type: object
properties:
rel:
type: string
type:
type: string
href:
type: string
title:
type: string
sizes:
type: string
required:
- rel
- href
- type
- sizes
widgets:
type: object
properties:
sidebar:
type: array
items:
type: object
properties:
html:
type: string
required:
- html
header:
type: array
items:
type: object
properties:
html:
type: string
footer:
type: array
items:
type: object
properties:
html:
type: string
motd:
type: array
items:
type: object
properties:
html:
type: string
- $ref: '#/components/schemas/CommonProps'
"304":
description: ""
"/api/post/{pid}/raw":
@ -9724,7 +9708,8 @@ paths:
content:
application/json:
schema:
type: object
allOf:
- type: object
properties:
topics:
type: array
@ -10058,10 +10043,6 @@ paths:
type: string
rssFeedUrl:
type: string
loggedIn:
type: boolean
relative_path:
type: string
template:
type: object
properties:
@ -10069,64 +10050,7 @@ paths:
type: string
tag:
type: boolean
url:
type: string
bodyClass:
type: string
_header:
type: object
properties:
tags:
type: object
properties:
meta:
type: array
items:
type: object
properties:
name:
type: string
content:
type: string
noEscape:
type: boolean
property:
type: string
required:
- name
- content
- noEscape
- property
link:
type: array
items:
type: object
properties:
rel:
type: string
type:
type: string
href:
type: string
title:
type: string
sizes:
type: string
required:
- rel
- href
- type
- sizes
widgets:
type: object
properties:
footer:
type: array
items:
type: object
properties:
html:
type: string
- $ref: '#/components/schemas/CommonProps'
/api/tags:
get:
tags:
@ -10139,7 +10063,8 @@ paths:
content:
application/json:
schema:
type: object
allOf:
- type: object
properties:
tags:
type: array
@ -10181,12 +10106,6 @@ paths:
type: string
required:
- text
title:
type: string
loggedIn:
type: boolean
relative_path:
type: string
template:
type: object
properties:
@ -10194,64 +10113,9 @@ paths:
type: string
tags:
type: boolean
url:
type: string
bodyClass:
type: string
_header:
type: object
properties:
tags:
type: object
properties:
meta:
type: array
items:
type: object
properties:
name:
type: string
content:
type: string
noEscape:
type: boolean
property:
type: string
required:
- name
- content
- noEscape
- property
link:
type: array
items:
type: object
properties:
rel:
type: string
type:
type: string
href:
type: string
title:
type: string
sizes:
type: string
required:
- rel
- href
- type
- sizes
widgets:
type: object
properties:
footer:
type: array
items:
type: object
properties:
html:
type: string
- $ref: '#/components/schemas/CommonProps'
/api/categories:
get:
tags:

Loading…
Cancel
Save