Booking API: Test methods
Test method without authentication
Section titled “Test method without authentication”Request
Section titled “Request”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
Response
Section titled “Response”Headers
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json; charset=utf-8
Body
OK
Test method with authentication
Section titled “Test method with authentication”Request
Section titled “Request”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
Response (if access token is valid)
Section titled “Response (if access token is valid)”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