Test authenticated access
GET
/tests/auth/DoNotAllowAnonymousAsDefault
const url = 'https://rms.dev.caspeco.net/api/booking/tests/auth/DoNotAllowAnonymousAsDefault';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://rms.dev.caspeco.net/api/booking/tests/auth/DoNotAllowAnonymousAsDefault \ --header 'Authorization: Bearer <token>'Will return “OK” if logged in.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
string
Examplegenerated
example