Skip to content

Commit 7413ec7

Browse files
authored
Merge pull request #20 from windingtree/feat/get-hotel
feat: get hotel info api
2 parents 94df277 + a4c95e5 commit 7413ec7

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

src/win.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,51 @@ paths:
775775
$ref: '#/components/schemas/Error'
776776

777777
/hotels/{providerHotelId}:
778+
get:
779+
tags: [ offers ]
780+
parameters:
781+
- in: path
782+
name: providerHotelId
783+
required: true
784+
schema:
785+
$ref: '#/components/schemas/EtherId'
786+
responses:
787+
200:
788+
description: It's ok
789+
content:
790+
application/json:
791+
schema:
792+
$ref: '#/components/schemas/WinAccommodation'
793+
400:
794+
description: Handled Error
795+
content:
796+
application/json:
797+
schema:
798+
$ref: '#/components/schemas/Error'
799+
401:
800+
description: Handled Error
801+
content:
802+
application/json:
803+
schema:
804+
$ref: '#/components/schemas/Error'
805+
403:
806+
description: Handled Error
807+
content:
808+
application/json:
809+
schema:
810+
$ref: '#/components/schemas/Error'
811+
404:
812+
description: Handled Error
813+
content:
814+
application/json:
815+
schema:
816+
$ref: '#/components/schemas/Error'
817+
500:
818+
description: Some server error
819+
content:
820+
application/json:
821+
schema:
822+
$ref: '#/components/schemas/Error'
778823
post:
779824
tags: [offers]
780825
parameters:

0 commit comments

Comments
 (0)