Skip to content

Commit 32b2690

Browse files
authored
Merge pull request #27 from windingtree/feat/rename_hotels
feat: hotels/ route deprecated, actual route - accommodations/
2 parents c2c42e7 + a3ca831 commit 32b2690

File tree

1 file changed

+246
-1
lines changed

1 file changed

+246
-1
lines changed

src/win.yaml

Lines changed: 246 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ paths:
634634
application/json:
635635
schema:
636636
$ref: '#/components/schemas/Error'
637-
637+
#start deprecated
638638
/hotels/offers/search:
639639
post:
640640
tags: [offers]
@@ -871,6 +871,251 @@ paths:
871871
application/json:
872872
schema:
873873
$ref: '#/components/schemas/Error'
874+
#end deprecated
875+
876+
/accommodations/offers/search:
877+
parameters:
878+
- in: query
879+
name: accommodationId
880+
schema:
881+
#todo change type after it will be available
882+
type: string
883+
post:
884+
tags: [offers]
885+
requestBody:
886+
required: true
887+
content:
888+
application/json:
889+
schema:
890+
$ref: '#/components/schemas/OffersSearchRequest'
891+
responses:
892+
200:
893+
description: It's ok
894+
content:
895+
application/json:
896+
schema:
897+
$ref: '#/components/schemas/SearchResults'
898+
400:
899+
description: Handled Error
900+
content:
901+
application/json:
902+
schema:
903+
$ref: '#/components/schemas/Error'
904+
401:
905+
description: Handled Error
906+
content:
907+
application/json:
908+
schema:
909+
$ref: '#/components/schemas/Error'
910+
403:
911+
description: Handled Error
912+
content:
913+
application/json:
914+
schema:
915+
$ref: '#/components/schemas/Error'
916+
404:
917+
description: Handled Error
918+
content:
919+
application/json:
920+
schema:
921+
$ref: '#/components/schemas/Error'
922+
500:
923+
description: Some server error
924+
content:
925+
application/json:
926+
schema:
927+
$ref: '#/components/schemas/Error'
928+
929+
/accommodations/offers/{offerId}/price:
930+
post:
931+
tags: [offers]
932+
parameters:
933+
- in: path
934+
name: offerId
935+
required: true
936+
schema:
937+
$ref: '#/components/schemas/UUID'
938+
responses:
939+
200:
940+
description: It's ok
941+
content:
942+
application/json:
943+
schema:
944+
$ref: '#/components/schemas/WinPricedOffer'
945+
400:
946+
description: Handled Error
947+
content:
948+
application/json:
949+
schema:
950+
$ref: '#/components/schemas/Error'
951+
401:
952+
description: Handled Error
953+
content:
954+
application/json:
955+
schema:
956+
$ref: '#/components/schemas/Error'
957+
403:
958+
description: Handled Error
959+
content:
960+
application/json:
961+
schema:
962+
$ref: '#/components/schemas/Error'
963+
404:
964+
description: Handled Error
965+
content:
966+
application/json:
967+
schema:
968+
$ref: '#/components/schemas/Error'
969+
500:
970+
description: Some server error
971+
content:
972+
application/json:
973+
schema:
974+
$ref: '#/components/schemas/Error'
975+
get:
976+
tags: [offers]
977+
parameters:
978+
- in: path
979+
name: offerId
980+
required: true
981+
schema:
982+
$ref: '#/components/schemas/UUID'
983+
responses:
984+
200:
985+
description: It's ok
986+
content:
987+
application/json:
988+
schema:
989+
$ref: '#/components/schemas/WinPricedOffer'
990+
400:
991+
description: Handled Error
992+
content:
993+
application/json:
994+
schema:
995+
$ref: '#/components/schemas/Error'
996+
401:
997+
description: Handled Error
998+
content:
999+
application/json:
1000+
schema:
1001+
$ref: '#/components/schemas/Error'
1002+
403:
1003+
description: Handled Error
1004+
content:
1005+
application/json:
1006+
schema:
1007+
$ref: '#/components/schemas/Error'
1008+
404:
1009+
description: Handled Error
1010+
content:
1011+
application/json:
1012+
schema:
1013+
$ref: '#/components/schemas/Error'
1014+
500:
1015+
description: Some server error
1016+
content:
1017+
application/json:
1018+
schema:
1019+
$ref: '#/components/schemas/Error'
1020+
1021+
/accommodations/{providerHotelId}:
1022+
get:
1023+
tags: [offers]
1024+
parameters:
1025+
- in: path
1026+
name: providerHotelId
1027+
required: true
1028+
schema:
1029+
#todo change type after it will be available
1030+
type: string
1031+
responses:
1032+
200:
1033+
description: It's ok
1034+
content:
1035+
application/json:
1036+
schema:
1037+
$ref: '#/components/schemas/WinAccommodation'
1038+
400:
1039+
description: Handled Error
1040+
content:
1041+
application/json:
1042+
schema:
1043+
$ref: '#/components/schemas/Error'
1044+
401:
1045+
description: Handled Error
1046+
content:
1047+
application/json:
1048+
schema:
1049+
$ref: '#/components/schemas/Error'
1050+
403:
1051+
description: Handled Error
1052+
content:
1053+
application/json:
1054+
schema:
1055+
$ref: '#/components/schemas/Error'
1056+
404:
1057+
description: Handled Error
1058+
content:
1059+
application/json:
1060+
schema:
1061+
$ref: '#/components/schemas/Error'
1062+
500:
1063+
description: Some server error
1064+
content:
1065+
application/json:
1066+
schema:
1067+
$ref: '#/components/schemas/Error'
1068+
post:
1069+
tags: [offers]
1070+
parameters:
1071+
- in: path
1072+
name: providerHotelId
1073+
required: true
1074+
schema:
1075+
$ref: '#/components/schemas/EtherId'
1076+
requestBody:
1077+
required: true
1078+
content:
1079+
application/json:
1080+
schema:
1081+
$ref: '#/components/schemas/OffersSearchRequest'
1082+
responses:
1083+
200:
1084+
description: It's ok
1085+
content:
1086+
application/json:
1087+
schema:
1088+
$ref: '#/components/schemas/SearchResults'
1089+
400:
1090+
description: Handled Error
1091+
content:
1092+
application/json:
1093+
schema:
1094+
$ref: '#/components/schemas/Error'
1095+
401:
1096+
description: Handled Error
1097+
content:
1098+
application/json:
1099+
schema:
1100+
$ref: '#/components/schemas/Error'
1101+
403:
1102+
description: Handled Error
1103+
content:
1104+
application/json:
1105+
schema:
1106+
$ref: '#/components/schemas/Error'
1107+
404:
1108+
description: Handled Error
1109+
content:
1110+
application/json:
1111+
schema:
1112+
$ref: '#/components/schemas/Error'
1113+
500:
1114+
description: Some server error
1115+
content:
1116+
application/json:
1117+
schema:
1118+
$ref: '#/components/schemas/Error'
8741119

8751120
/booking/{address}:
8761121
get:

0 commit comments

Comments
 (0)