Commit 4cf29da 1 parent 7ab5a49 commit 4cf29da Copy full SHA for 4cf29da
File tree 2 files changed +26
-0
lines changed
matchmaker/api/src/main/resources/static/openapi
people/api/src/main/resources/static/openapi
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ paths:
92
92
application/json :
93
93
schema :
94
94
$ref : " #/components/schemas/GeneralError"
95
+ 409 :
96
+ description : Attitude was already taken
97
+ content :
98
+ application/json :
99
+ schema :
100
+ $ref : " #/components/schemas/GeneralError"
95
101
/people/{target_id}/attitudes/{attitude_kind} :
96
102
post :
97
103
tags : [SOA]
@@ -125,6 +131,12 @@ paths:
125
131
application/json :
126
132
schema :
127
133
$ref : " #/components/schemas/GeneralError"
134
+ 409 :
135
+ description : Attitude was already taken
136
+ content :
137
+ application/json :
138
+ schema :
139
+ $ref : " #/components/schemas/GeneralError"
128
140
/attitudes :
129
141
delete :
130
142
tags : [SOA]
Original file line number Diff line number Diff line change @@ -196,6 +196,14 @@ paths:
196
196
tags : [People]
197
197
summary : Create a person
198
198
description : Creates a person with given parameters
199
+ parameters :
200
+ - name : Idempotency-Key
201
+ in : header
202
+ required : true
203
+ schema :
204
+ type : string
205
+ format : uuid
206
+ example : 550e8400-e29b-41d4-a716-446655440000
199
207
requestBody :
200
208
required : true
201
209
content :
@@ -221,6 +229,12 @@ paths:
221
229
application/json :
222
230
schema :
223
231
$ref : " #/components/schemas/GeneralError"
232
+ 409 :
233
+ description : If person was already created (Idempotency-Key duplicated)
234
+ content :
235
+ application/json :
236
+ schema :
237
+ $ref : " #/components/schemas/GeneralError"
224
238
/people/{person_id} :
225
239
get :
226
240
tags : [People]
You can’t perform that action at this time.
0 commit comments