Skip to content

Commit 278ac09

Browse files
request body optional
1 parent bcf494e commit 278ac09

File tree

1 file changed

+54
-13
lines changed

1 file changed

+54
-13
lines changed

simple.yaml

+54-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,60 @@
11
openapi: 3.0.1
22
info:
3-
title: Test API
4-
version: v1
3+
title: Tufin
4+
version: "2.0"
5+
servers:
6+
- url: https://localhost:9080
57
paths:
6-
/partner-api/test/some-method:
7-
get:
8+
/api/v1.0/groups:
9+
post:
810
tags:
9-
- Test
10-
responses:
11-
"201":
12-
description: Success
13-
/partner-api/test/another-method:
14-
get:
15-
tags:
16-
- Test
11+
- Group
12+
operationId: createOneGroup
13+
requestBody:
14+
content:
15+
application/json:
16+
schema:
17+
$ref: '#/components/schemas/GroupView'
18+
description: Creates one project.
19+
required: true
1720
responses:
1821
"200":
19-
description: Success
22+
content:
23+
application/json:
24+
schema:
25+
$ref: '#/components/schemas/GroupView'
26+
description: OK
27+
"409":
28+
content:
29+
application/json:
30+
schema:
31+
$ref: '#/components/schemas/GroupView'
32+
description: Conflict
33+
summary: Create One Project
34+
components:
35+
parameters:
36+
groupId:
37+
in: path
38+
name: groupId
39+
required: true
40+
schema:
41+
type: string
42+
schemas:
43+
GroupView:
44+
type: object
45+
properties:
46+
data:
47+
type: object
48+
properties:
49+
created:
50+
type: string
51+
format: date-time
52+
readOnly: true
53+
pattern: "^[a-z]+$"
54+
id:
55+
type: string
56+
readOnly: true
57+
name:
58+
type: string
59+
required:
60+
- name

0 commit comments

Comments
 (0)