/room/ - CreateRoom
POST {{host}}/room/
A request that allows you to create a Room.
Authorisation
To use this request you must be authorised.
Authorisation is achieved by creating a Cookie
header with the value token=abc123
. To get a valid token, you send a request to POST /auth
using the Auth
API in restful-booker-platform.
Simply run the request once with the default credentials to have Qodex add a token
to the Cookies manager.
Request Body
{"roomName"=>"101", "type"=>"Suite", "accessible"=>true, "image"=>"https://blog.postman.com/wp-content/uploads/2014/07/logo.png", "description"=>"This is room 101, dare you enter?", "roomPrice"=>100, "features"=>["WiFi", "Safe"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Accept-Language | string | ||
Accept-Encoding | string | ||
Content-Type | string | ||
Origin | string |