-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
52 lines (52 loc) · 1.06 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
openapi: 3.0.3
info:
version: 1.0.0
title: hoge hoge
servers:
- url: 'http://localhost:8080'
paths:
/contents:
post:
summary: Create a content
operationId: postContent
tags:
- content
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ContentRequest'
responses:
'204':
description: no content
default:
description: unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
required:
- message
- errors
properties:
message:
type: string
errors:
type: array
items:
type: object
ContentRequest:
type: object
required:
- name
- description
properties:
name:
type: string
description:
type: string