Skip to content

Commit

Permalink
fix(openapi): added missing request bodies
Browse files Browse the repository at this point in the history
mvegter authored May 12, 2020
2 parents 09d8c83 + fbef5f6 commit c95fb31
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion spec/openapi.yaml
Original file line number Diff line number Diff line change
@@ -44,6 +44,8 @@ paths:
post:
operationId: createLog
summary: Adds a new log
requestBody:
$ref: '#/components/requestBodies/CreateLog'
responses:
'201':
$ref: '#/components/responses/Log'
@@ -122,6 +124,8 @@ paths:
post:
operationId: createTag
summary: Adds a new tag
requestBody:
$ref: '#/components/requestBodies/CreateTag'
responses:
'201':
$ref: '#/components/responses/Tag'
@@ -225,6 +229,35 @@ components:
schema:
type: integer
format: int64
requestBodies:
CreateLog:
required: true
content:
application/json:
schema:
description: Describes an intervention or an event that happened.
type: object
properties:
title:
description: Title of the log.
type: string
required:
- title
additionalProperties: false
CreateTag:
required: true
content:
application/json:
schema:
description: A label attached to something for the purpose of identification.
type: object
properties:
text:
description: The label value of the tag.
type: string
required:
- text
additionalProperties: false
responses:
ArrayOfLogs:
description: Expected response to a valid request.
@@ -334,7 +367,7 @@ components:
- age
- start
Error:
description: An Error object.
description: An Error object.
type: object
properties:
status:

0 comments on commit c95fb31

Please sign in to comment.