Big refactoring #77
@@ -1,4 +1,4 @@
|
|||||||
openapi: 3.0.1
|
openapi: 3.0.0
|
||||||
info:
|
info:
|
||||||
version: '0.1'
|
version: '0.1'
|
||||||
title: 'DC Project'
|
title: 'DC Project'
|
||||||
@@ -157,17 +157,18 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
required:
|
||||||
|
- old_password
|
||||||
|
- new_password
|
||||||
properties:
|
properties:
|
||||||
old_password:
|
old_password:
|
||||||
type: string
|
type: string
|
||||||
format: password
|
format: password
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
azerty
|
azerty
|
||||||
new_password:
|
new_password:
|
||||||
type: string
|
type: string
|
||||||
format: password
|
format: password
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
qwerty
|
qwerty
|
||||||
responses:
|
responses:
|
||||||
@@ -762,6 +763,8 @@ paths:
|
|||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/opinion'
|
- $ref: '#/components/parameters/opinion'
|
||||||
get:
|
get:
|
||||||
|
security:
|
||||||
|
- {}
|
||||||
summary: Get one opinion Choices
|
summary: Get one opinion Choices
|
||||||
tags:
|
tags:
|
||||||
- opinion
|
- opinion
|
||||||
@@ -923,6 +926,8 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
required:
|
||||||
|
- name
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -931,7 +936,6 @@ paths:
|
|||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
example: Les partisants du RIC
|
example: Les partisants du RIC
|
||||||
required: true
|
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
example: Group formé pour la conception d'un RIC
|
example: Group formé pour la conception d'un RIC
|
||||||
@@ -1000,11 +1004,12 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
required:
|
||||||
|
- name
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
example: Les partisants du RIC
|
example: Les partisants du RIC
|
||||||
required: true
|
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
example: Group formé pour la conception d'un RIC
|
example: Group formé pour la conception d'un RIC
|
||||||
@@ -1314,7 +1319,6 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
last_version:
|
last_version:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
Paginated:
|
Paginated:
|
||||||
@@ -1345,10 +1349,11 @@ components:
|
|||||||
example: 1
|
example: 1
|
||||||
|
|
||||||
UserBase:
|
UserBase:
|
||||||
|
required:
|
||||||
|
- username
|
||||||
properties:
|
properties:
|
||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
john-doe
|
john-doe
|
||||||
UserResponse:
|
UserResponse:
|
||||||
@@ -1359,10 +1364,11 @@ components:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/UserBase'
|
- $ref: '#/components/schemas/UserBase'
|
||||||
- type: object
|
- type: object
|
||||||
|
required:
|
||||||
|
- password
|
||||||
properties:
|
properties:
|
||||||
password:
|
password:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
azerty
|
azerty
|
||||||
format: password
|
format: password
|
||||||
@@ -1378,18 +1384,19 @@ components:
|
|||||||
$ref: '#/components/schemas/UserResponse'
|
$ref: '#/components/schemas/UserResponse'
|
||||||
CitizenBase:
|
CitizenBase:
|
||||||
type: object
|
type: object
|
||||||
|
required:
|
||||||
|
- first_name
|
||||||
|
- last_name
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
first_name:
|
first_name:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
john
|
john
|
||||||
last_name:
|
last_name:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
Doe
|
Doe
|
||||||
birthday:
|
birthday:
|
||||||
@@ -1412,17 +1419,18 @@ components:
|
|||||||
$ref: '#/components/schemas/CitizenRequest'
|
$ref: '#/components/schemas/CitizenRequest'
|
||||||
|
|
||||||
LoginRequest:
|
LoginRequest:
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- password
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: username
|
description: username
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
john-doe
|
john-doe
|
||||||
password:
|
password:
|
||||||
type: string
|
type: string
|
||||||
description: Pasword
|
description: Pasword
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
azerty
|
azerty
|
||||||
|
|
||||||
@@ -1430,41 +1438,41 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- type: object
|
- type: object
|
||||||
|
required:
|
||||||
|
- title
|
||||||
|
- content
|
||||||
|
- description
|
||||||
|
- tags
|
||||||
|
- anonymous
|
||||||
|
- draft
|
||||||
properties:
|
properties:
|
||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
Limit power of press
|
Limit power of press
|
||||||
content:
|
content:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
Lorem upsum...
|
Lorem upsum...
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
I think is the bether choice
|
I think is the bether choice
|
||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
|
||||||
default: []
|
default: []
|
||||||
example: [power, press]
|
example: [power, press]
|
||||||
anonymous:
|
anonymous:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
|
||||||
default: true
|
default: true
|
||||||
draft:
|
draft:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
|
||||||
default: false
|
default: false
|
||||||
workgroup:
|
workgroup:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/UuidEntity'
|
- $ref: '#/components/schemas/UuidEntity'
|
||||||
- required: false
|
|
||||||
- default: null
|
- default: null
|
||||||
- $ref: '#/components/schemas/versionId'
|
- $ref: '#/components/schemas/versionId'
|
||||||
ArticleResponse:
|
ArticleResponse:
|
||||||
@@ -1485,25 +1493,23 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- type: object
|
- type: object
|
||||||
|
required:
|
||||||
|
- title
|
||||||
properties:
|
properties:
|
||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
Constitution for the liberty
|
Constitution for the liberty
|
||||||
titles:
|
titles:
|
||||||
type: array
|
type: array
|
||||||
required: false
|
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/TitleBase'
|
$ref: '#/components/schemas/TitleBase'
|
||||||
anonymous:
|
anonymous:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
|
||||||
default: true
|
default: true
|
||||||
draft:
|
draft:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
|
||||||
default: false
|
default: false
|
||||||
- $ref: '#/components/schemas/versionId'
|
- $ref: '#/components/schemas/versionId'
|
||||||
ConstitutionResponse:
|
ConstitutionResponse:
|
||||||
@@ -1531,10 +1537,11 @@ components:
|
|||||||
|
|
||||||
TitleBase:
|
TitleBase:
|
||||||
type: object
|
type: object
|
||||||
|
required:
|
||||||
|
- name
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
The liberties
|
The liberties
|
||||||
rank:
|
rank:
|
||||||
@@ -1582,10 +1589,11 @@ components:
|
|||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- type: object
|
- type: object
|
||||||
|
required:
|
||||||
|
- content
|
||||||
properties:
|
properties:
|
||||||
content:
|
content:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example:
|
example:
|
||||||
Lorem ipsum...
|
Lorem ipsum...
|
||||||
CommentRequest:
|
CommentRequest:
|
||||||
@@ -1599,14 +1607,15 @@ components:
|
|||||||
- $ref: '#/components/schemas/Extra'
|
- $ref: '#/components/schemas/Extra'
|
||||||
- $ref: '#/components/schemas/Votable'
|
- $ref: '#/components/schemas/Votable'
|
||||||
- type: object
|
- type: object
|
||||||
|
required:
|
||||||
|
- parent_ids
|
||||||
|
- parent
|
||||||
properties:
|
properties:
|
||||||
parents_ids:
|
parents_ids:
|
||||||
type: array
|
type: array
|
||||||
required: false
|
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/UUID'
|
$ref: '#/components/schemas/UUID'
|
||||||
parent:
|
parent:
|
||||||
required: false
|
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/UUID'
|
- $ref: '#/components/schemas/UUID'
|
||||||
|
|
||||||
@@ -1621,12 +1630,13 @@ components:
|
|||||||
VoteBase:
|
VoteBase:
|
||||||
allOf:
|
allOf:
|
||||||
- type: object
|
- type: object
|
||||||
|
required:
|
||||||
|
- note
|
||||||
properties:
|
properties:
|
||||||
note:
|
note:
|
||||||
type: integer
|
type: integer
|
||||||
minimum: -1
|
minimum: -1
|
||||||
maximum: 1
|
maximum: 1
|
||||||
required: true
|
|
||||||
VoteRequest:
|
VoteRequest:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/VoteBase'
|
- $ref: '#/components/schemas/VoteBase'
|
||||||
@@ -1688,6 +1698,8 @@ components:
|
|||||||
description: Opinion Choice
|
description: Opinion Choice
|
||||||
allOf:
|
allOf:
|
||||||
- type: object
|
- type: object
|
||||||
|
required:
|
||||||
|
- name
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: string
|
type: string
|
||||||
@@ -1697,7 +1709,6 @@ components:
|
|||||||
example: opinion1
|
example: opinion1
|
||||||
target:
|
target:
|
||||||
type: array
|
type: array
|
||||||
required: false
|
|
||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
Reference in New Issue
Block a user