feature #11: add schemas CreatedAt in openAPI

This commit is contained in:
2019-08-29 14:42:24 +02:00
parent 201430017e
commit fb2b393c2e

View File

@@ -208,6 +208,12 @@ components:
created_by:
$ref: '#/components/schemas/UuidEntity'
CreatedAt:
properties:
created_at:
type: string
format: 'date-time'
UserBase:
properties:
username:
@@ -234,10 +240,10 @@ components:
CitizenResponse:
allOf:
- $ref: '#/components/schemas/CitizenBase'
- $ref: '#/components/schemas/CreatedAt'
- $ref: '#/components/schemas/UuidEntity'
- type: object
properties:
id:
$ref: '#/components/schemas/UUID'
user:
$ref: '#/components/schemas/UserResponse'
CitizenBase:
@@ -314,6 +320,7 @@ components:
- $ref: '#/components/schemas/ArticleBase'
- $ref: '#/components/schemas/UuidEntity'
- $ref: '#/components/schemas/CreatedBy'
- $ref: '#/components/schemas/CreatedAt'
ArticleRequest:
$ref: '#/components/schemas/ArticleBase'