create openapi schema ArticleListingResponse
This commit is contained in:
@@ -40,32 +40,7 @@ paths:
|
|||||||
type: array
|
type: array
|
||||||
maxItems: 50
|
maxItems: 50
|
||||||
items:
|
items:
|
||||||
required:
|
$ref: '#/components/schemas/ArticleListingResponse'
|
||||||
- id
|
|
||||||
- title
|
|
||||||
- createdBy
|
|
||||||
- workgroup
|
|
||||||
- draft
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
title:
|
|
||||||
type: string
|
|
||||||
createdBy:
|
|
||||||
$ref: '#/components/schemas/CitizenCreator'
|
|
||||||
workgroup:
|
|
||||||
type: object
|
|
||||||
nullable: true
|
|
||||||
additionalProperties: false
|
|
||||||
properties:
|
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
draft:
|
|
||||||
type: boolean
|
|
||||||
post:
|
post:
|
||||||
security:
|
security:
|
||||||
- JWTAuth: []
|
- JWTAuth: []
|
||||||
@@ -968,6 +943,33 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
score:
|
score:
|
||||||
type: integer
|
type: integer
|
||||||
|
ArticleListingResponse:
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- title
|
||||||
|
- createdBy
|
||||||
|
- workgroup
|
||||||
|
- draft
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
createdBy:
|
||||||
|
$ref: '#/components/schemas/CitizenCreator'
|
||||||
|
workgroup:
|
||||||
|
type: object
|
||||||
|
nullable: true
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
draft:
|
||||||
|
type: boolean
|
||||||
|
|
||||||
CitizenListResponse:
|
CitizenListResponse:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|||||||
Reference in New Issue
Block a user