Test unauthenticated access
GET
/tests/auth/AllowAnonymousWhenSpecified
const url = 'https://rms.dev.caspeco.net/api/booking/tests/auth/AllowAnonymousWhenSpecified';const options = {method: 'GET'};
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/AllowAnonymousWhenSpecifiedWill return “OK” regardless if logged in or not.
Responses
Section titled “Responses”Media typeapplication/json
string
Examplegenerated
example