Offices
Create a new office
Changed onpost/offices
Request
- Base URLhttp://localhost:3000
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"coordinates": {
"latitude": 52.52,
"longitude": 13.405
},
"amenities": [
{
"code": "parking",
"name": "PARKING"
}
]
}Response
Office created successfully
Example response
{
"country": "Netherlands",
"city": "Amsterdam",
"address": "Damrak 81",
"capacity": 150,
"monthlyRental": 10000,
"estate": {
"owner": "B2C Estates and Sons",
"phone": "(7364) 079343",
"account": "NL86 AMUJ 9303 4156 60"
},
"amenities": [
{
"code": "OUTDOOR_SEATING",
"name": "Outdoor seating"
},
{
"code": "OPEN_SPACE",
"name": "Open space"
}
],
"imgURL": "amsterdam-6Uf6-XCKJ-qTKq-ISt2-B3SE.jpg"
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
removed the required property
from the response with the status - warning
removed the request property
- info
added the required property
to the response with the status
- breaking
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info