File tree Expand file tree Collapse file tree 1 file changed +4
-38
lines changed
code_samples/api/rest_api/src/Rest/Controller Expand file tree Collapse file tree 1 file changed +4
-38
lines changed Original file line number Diff line number Diff line change 22
22
tags: [
23
23
'App ' ,
24
24
],
25
- parameters: [
26
- new Model \Parameter (
27
- name: 'Accept ' ,
28
- in: 'header ' ,
29
- required: false ,
30
- description: 'If set, the greeting is returned in XML or JSON format. ' ,
31
- schema: [
32
- 'type ' => 'string ' ,
33
- ],
34
- example: 'application/vnd.ibexa.api.Greeting+json ' ,
35
- ),
36
- ],
25
+ parameters: [],
37
26
responses: [
38
27
Response::HTTP_OK => [
39
28
'description ' => 'OK - Return a greeting ' ,
106
95
tags: [
107
96
'App ' ,
108
97
],
109
- parameters: [
110
- new Model \Parameter (
111
- name: 'Content-Type ' ,
112
- in: 'header ' ,
113
- required: false ,
114
- description: 'The greeting input schema encoded in XML or JSON. ' ,
115
- schema: [
116
- 'type ' => 'string ' ,
117
- ],
118
- example: 'application/vnd.ibexa.api.GreetingInput+json ' ,
119
- ),
120
- new Model \Parameter (
121
- name: 'Accept ' ,
122
- in: 'header ' ,
123
- required: false ,
124
- description: 'If set, the greeting is returned in XML or JSON format. ' ,
125
- schema: [
126
- 'type ' => 'string ' ,
127
- ],
128
- example: 'application/vnd.ibexa.api.Greeting+json ' ,
129
- ),
130
- ],
98
+ parameters: [],
131
99
requestBody: new Model \RequestBody (
132
100
required: false ,
133
101
content: new \ArrayObject ([
138
106
'name ' => 'GreetingInput ' ,
139
107
'wrapped ' => false ,
140
108
],
109
+ 'required ' => [],
141
110
'properties ' => [
142
111
'salutation ' => [
143
112
'type ' => 'string ' ,
144
- 'required ' => false ,
145
113
],
146
114
'recipient ' => [
147
115
'type ' => 'string ' ,
148
- 'required ' => false ,
149
116
],
150
117
],
151
118
],
159
126
'properties ' => [
160
127
'GreetingInput ' => [
161
128
'type ' => 'object ' ,
129
+ 'required ' => [],
162
130
'properties ' => [
163
131
'salutation ' => [
164
132
'type ' => 'string ' ,
165
- 'required ' => false ,
166
133
],
167
134
'recipient ' => [
168
135
'type ' => 'string ' ,
169
- 'required ' => false ,
170
136
],
171
137
],
172
138
],
You can’t perform that action at this time.
0 commit comments