Skip to content

Booking API: Test methods

This method does not require authentication, and should return the result “OK”.

GEThttps://rms.caspeco.se/api/booking/tests/auth/AllowAnonymousWhenSpecified HTTP/1.1

Headers
Host: http://rms.caspeco.se

Headers
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json; charset=utf-8

Body
OK

This request requires a valid Personal Access Token.
Replace “abc123 …” with an access_token obtained at login.

GEThttps://rms.caspeco.se/api/booking/tests/auth/DoNotAllowAnonymousAsDefault HTTP/1.1

Headers
Host: http://rms.caspeco.se
Authorization: Bearer ProductionServer-2020-01-14-2088-01-13–abc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1

Headers
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json; charset=utf-8

Body
Ok

Error response (if access token is not valid)

Section titled “Error response (if access token is not valid)”

Headers
HTTP/1.1 401 Invalid authentication
Content-Length: 81
Content-Type: text/plain; charset=utf-8

Body
Anonymous permissionSet is not allowed for: AuthTest.DoNotAllowAnonymousAsDefault