Added content filed to upload
This commit is contained in:
6
api.yaml
6
api.yaml
@@ -27,6 +27,7 @@ paths:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ArticleSummary'
|
$ref: '#/components/schemas/ArticleSummary'
|
||||||
|
|
||||||
/api/search:
|
/api/search:
|
||||||
get:
|
get:
|
||||||
summary: Search all articles
|
summary: Search all articles
|
||||||
@@ -63,6 +64,7 @@ paths:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ArticleSummary'
|
$ref: '#/components/schemas/ArticleSummary'
|
||||||
|
|
||||||
/api/upload:
|
/api/upload:
|
||||||
post:
|
post:
|
||||||
summary: "Uploads a new article"
|
summary: "Uploads a new article"
|
||||||
@@ -88,6 +90,9 @@ paths:
|
|||||||
description: Tags the article should have. If the tag does not exist, a new one is created automatically
|
description: Tags the article should have. If the tag does not exist, a new one is created automatically
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Tag'
|
$ref: '#/components/schemas/Tag'
|
||||||
|
content:
|
||||||
|
type: string
|
||||||
|
description: The article itself, formatted as markdown
|
||||||
security:
|
security:
|
||||||
- cookie: []
|
- cookie: []
|
||||||
|
|
||||||
@@ -107,7 +112,6 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ApiError'
|
$ref: '#/components/schemas/ApiError'
|
||||||
|
|
||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
ApiError:
|
ApiError:
|
||||||
|
|||||||
Reference in New Issue
Block a user