{
  "openapi": "3.1.0",
  "info": {
    "title": "The Sunriver Cabin booking API",
    "version": "1.0.0",
    "description": "Live availability, quotes and checkout links for The Sunriver Cabin, a 5-bedroom vacation rental in Sunriver, Oregon. Read-only; bookings are completed by the traveler at the returned checkout URL."
  },
  "servers": [
    {
      "url": "https://thesunrivercabin.com"
    }
  ],
  "paths": {
    "/api/property": {
      "get": {
        "operationId": "getProperty",
        "summary": "Property details, rules and FAQ",
        "responses": {
          "200": {
            "description": "Property profile"
          }
        }
      }
    },
    "/api/availability": {
      "get": {
        "operationId": "getAvailability",
        "summary": "Nightly availability and rates (max 120 days)",
        "parameters": [
          {
            "name": "start_date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calendar days"
          },
          "400": {
            "description": "Bad input"
          }
        }
      }
    },
    "/api/quote": {
      "get": {
        "operationId": "getQuote",
        "summary": "Check specific dates, price the stay and get a checkout link",
        "parameters": [
          {
            "name": "check_in",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "check_out",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "guests",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Quote, or reasons the dates aren't available"
          },
          "400": {
            "description": "Bad input"
          }
        }
      }
    }
  }
}