Skip to content

Commit 43e6d27

Browse files
authored
Merge pull request #7 from blecorre/feat/update-groups
feat: add rewards to groups booking
2 parents 0dfd4f5 + 7afa4df commit 43e6d27

File tree

2 files changed

+111
-0
lines changed

2 files changed

+111
-0
lines changed

src/shared-definitions.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,3 +2130,11 @@ components:
21302130
$ref: '#/components/schemas/Amount'
21312131
currency:
21322132
$ref: '#/components/schemas/Currency'
2133+
2134+
GroupBookingRequestResponse:
2135+
description: Representation of a response to a group booking request
2136+
required: ['requestId']
2137+
properties:
2138+
requestId:
2139+
description: Id of the group booking request
2140+
type: string

src/win.yaml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,109 @@ paths:
11411141
application/json:
11421142
schema:
11431143
$ref: '#/components/schemas/GroupBookingRequest'
1144+
responses:
1145+
200:
1146+
description: It's ok
1147+
content:
1148+
application/json:
1149+
schema:
1150+
$ref: '#/components/schemas/GroupBookingRequestResponse'
1151+
400:
1152+
description: Handled Error
1153+
content:
1154+
application/json:
1155+
schema:
1156+
$ref: '#/components/schemas/Error'
1157+
401:
1158+
description: Handled Error
1159+
content:
1160+
application/json:
1161+
schema:
1162+
$ref: '#/components/schemas/Error'
1163+
403:
1164+
description: Handled Error
1165+
content:
1166+
application/json:
1167+
schema:
1168+
$ref: '#/components/schemas/Error'
1169+
404:
1170+
description: Handled Error
1171+
content:
1172+
application/json:
1173+
schema:
1174+
$ref: '#/components/schemas/Error'
1175+
500:
1176+
description: Some server error
1177+
content:
1178+
application/json:
1179+
schema:
1180+
$ref: '#/components/schemas/Error'
1181+
1182+
/groups/{requestId}/rewardOptions:
1183+
parameters:
1184+
- in: path
1185+
name: offerId
1186+
required: true
1187+
schema:
1188+
$ref: '#/components/schemas/UUID'
1189+
get:
1190+
tags: [groups]
1191+
responses:
1192+
200:
1193+
description: It's ok
1194+
content:
1195+
application/json:
1196+
schema:
1197+
type: array
1198+
items:
1199+
$ref: '#/components/schemas/RewardOption'
1200+
400:
1201+
description: Handled Error
1202+
content:
1203+
application/json:
1204+
schema:
1205+
$ref: '#/components/schemas/Error'
1206+
401:
1207+
description: Handled Error
1208+
content:
1209+
application/json:
1210+
schema:
1211+
$ref: '#/components/schemas/Error'
1212+
403:
1213+
description: Handled Error
1214+
content:
1215+
application/json:
1216+
schema:
1217+
$ref: '#/components/schemas/Error'
1218+
404:
1219+
description: Handled Error
1220+
content:
1221+
application/json:
1222+
schema:
1223+
$ref: '#/components/schemas/Error'
1224+
500:
1225+
description: Some server error
1226+
content:
1227+
application/json:
1228+
schema:
1229+
$ref: '#/components/schemas/Error'
1230+
1231+
/groups/{requestId}/reward:
1232+
parameters:
1233+
- in: path
1234+
name: offerId
1235+
required: true
1236+
schema:
1237+
$ref: '#/components/schemas/UUID'
1238+
post:
1239+
tags: [groups]
1240+
requestBody:
1241+
required: true
1242+
content:
1243+
application/json:
1244+
schema:
1245+
$ref: '#/components/schemas/RewardChoice'
1246+
11441247
responses:
11451248
200:
11461249
description: It's ok

0 commit comments

Comments
 (0)