@@ -109,6 +109,26 @@ paths:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ArticleResponse'
|
$ref: '#/components/schemas/ArticleResponse'
|
||||||
|
post:
|
||||||
|
security:
|
||||||
|
- JWTAuth: []
|
||||||
|
summary: Create new Article
|
||||||
|
tags:
|
||||||
|
- article
|
||||||
|
operationId: insertArticle
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ArticleRequest'
|
||||||
|
responses:
|
||||||
|
201:
|
||||||
|
description: Article created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ArticleResponse'
|
||||||
/articles/{article}:
|
/articles/{article}:
|
||||||
get:
|
get:
|
||||||
summary: Get all articles
|
summary: Get all articles
|
||||||
@@ -155,6 +175,8 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ConstitutionResponse'
|
$ref: '#/components/schemas/ConstitutionResponse'
|
||||||
post:
|
post:
|
||||||
|
security:
|
||||||
|
- JWTAuth: []
|
||||||
summary: Create new Constitution
|
summary: Create new Constitution
|
||||||
tags:
|
tags:
|
||||||
- constitution
|
- constitution
|
||||||
@@ -366,18 +388,25 @@ components:
|
|||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
example:
|
||||||
|
Limit power of press
|
||||||
content:
|
content:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
example:
|
||||||
|
Lorem upsum...
|
||||||
descritption:
|
descritption:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
example:
|
||||||
|
I think is the bether choice
|
||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: []
|
||||||
|
example: [power, press]
|
||||||
annonymous:
|
annonymous:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
@@ -473,7 +502,7 @@ components:
|
|||||||
articles:
|
articles:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ArticleBase'
|
$ref: '#/components/schemas/ArticleResponse'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user