From bc077bdde1d2c35b5343abd2219089e2d1363e60 Mon Sep 17 00:00:00 2001 From: Jan Langer Date: Thu, 4 Apr 2024 10:42:43 +0200 Subject: [PATCH] Fix reservation schema --- dist/index.html | 4 ++-- openapi.yaml | 54 +++++++++++++++++++++++++++++++------------------ package.json | 2 +- 3 files changed, 37 insertions(+), 23 deletions(-) diff --git a/dist/index.html b/dist/index.html index 3246f92..0696c0a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -741,7 +741,7 @@

Usage:

" class="sc-iJCSeZ sc-cBornZ gJcGEt AiHgN sc-ciSkmu iZNUXd">

Successful response

Request samples

Content type
application/json
{
  • "id": 123456,
  • "status": "option",
  • "roomTypeId": 123,
  • "term": {
    },
  • "price": {
    },
  • "adultsCount": 2,
  • "childrenCount": 1,
  • "children": [
    ],
  • "guestNote": "I would like to have a room with a view.",
  • "voucher": "1234567890",
  • "contact": {
    }
}

Response samples

Content type
application/json
{
  • "reservation": {
    }
}

Reservation query

Request samples

Content type
application/json
{
  • "accessToken": "11-11-11-11",
  • "hotelId": 123456,
  • "reservationGroup": {
    }
}

Response samples

Content type
application/json
{
  • "hotelId": "string",
  • "accessToken": "string",
  • "reservationGroup": {
    }
}

Reservation query

Usage: " class="sc-iJCSeZ sc-cBornZ gJcGEt AiHgN sc-ciSkmu iZNUXd">

Expected error

Request samples

Content type
application/json
{
  • "accessToken": "string",
  • "hotelId": "string"
}

Response samples

Content type
application/json
{
  • "success": true
}