Skip to content

Commit 9641326

Browse files
request body optional
1 parent 278ac09 commit 9641326

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

simple.yaml

+28-28
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,6 @@ info:
44
version: "2.0"
55
servers:
66
- url: https://localhost:9080
7-
paths:
8-
/api/v1.0/groups:
9-
post:
10-
tags:
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
20-
responses:
21-
"200":
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
347
components:
358
parameters:
369
groupId:
@@ -57,4 +30,31 @@ components:
5730
name:
5831
type: string
5932
required:
60-
- name
33+
- name
34+
paths:
35+
/api/v1.0/groups:
36+
post:
37+
tags:
38+
- Group
39+
operationId: createOneGroup
40+
requestBody:
41+
content:
42+
application/json:
43+
schema:
44+
$ref: '#/components/schemas/GroupView'
45+
description: Creates one project.
46+
required: false
47+
responses:
48+
"200":
49+
content:
50+
application/json:
51+
schema:
52+
$ref: '#/components/schemas/GroupView'
53+
description: OK
54+
"409":
55+
content:
56+
application/json:
57+
schema:
58+
$ref: '#/components/schemas/GroupView'
59+
description: Conflict
60+
summary: Create One Project

0 commit comments

Comments
 (0)