Create an accommodation

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/demo/hub/support/doc/accommodation-polymorphism/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Accommodation polymorphism MCP server": {
    "url": "https://bump.sh/demo/hub/support/doc/accommodation-polymorphism/mcp"
  }
}

Close
POST /accommodation

Example about polymorphism in API. This endpoint 'POST /accommodation' can be used to create either apartment, either house.

application/json

Body object

One of:

Responses

  • 200

    Accommodation has been created.

  • 300

    🚐

  • 404

    🌌

POST /accommodation
curl \
 --request POST 'http://realestate.agency.io/api/v1/accommodation' \
 --header "Content-Type: application/json" \
 --data '{"type":"house","size":139,"monthy_rent":799,"address":"246 Bd Saint-Germain, 75007 Paris","garden_size":3300,"roof_tiles_type":"Clay","solar_panels_power":1200,"basement_size":42}'
Request examples
{
  "type": "house",
  "size": 139,
  "monthy_rent": 799,
  "address": "246 Bd Saint-Germain, 75007 Paris",
  "garden_size": 3300,
  "roof_tiles_type": "Clay",
  "solar_panels_power": 1200,
  "basement_size": 42
}
{
  "type": "flat",
  "size": 139,
  "monthy_rent": 799,
  "address": "246 Bd Saint-Germain, 75007 Paris",
  "floor": 2,
  "collective_heating_system": true,
  "elevator": true,
  "parking_spots": 3
}