@dntlab/swagger-dean
Version:
swagger api for DeArchNet project
49 lines (47 loc) • 1.52 kB
YAML
post:
summary: Fetches data of creating project request
operationId: rest.projects.post
security:
- jwt: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '../components/components.yaml#/components/requestBodies/projectBody'
responses:
201:
description: Successfully new project created
content:
application/json:
schema:
$ref: '../components/components.yaml#/components/schemas/project'
404:
$ref: '../components/components.yaml#/components/responses/404NotFound'
default:
$ref: '../components/components.yaml#/components/responses/UnexpectedError'
get:
summary: Fetches data of all projects you were created
parameters:
- in: query
name: published
required: true
schema:
type: boolean
description: Published or unpublished projects
- $ref: '../components/components.yaml#/components/parameters/offset_param'
- $ref: '../components/components.yaml#/components/parameters/limit_param'
operationId: rest.projects.index
security:
- jwt: []
responses:
200:
description: Successfull fetch
content:
application/json:
schema:
$ref: '../components/components.yaml#/components/schemas/list_of_projects'
404:
$ref: '../components/components.yaml#/components/responses/404NotFound'
default:
$ref: '../components/components.yaml#/components/responses/UnexpectedError'