An intentionally busted server.
Returns on success:
{
"data":{
"state":"Washington"
}
}
Returns on error:
{
"status": 451,
"errors": [
{
"status": 451,
"detail": "Connecticut: is unavailable for legal reasons."
}
]
}
- NOTE: To force an error append
?error=1
to your request - NOTE: To force an success append
?success=1
to your request - NOTE: To force a timeout append
?timeout=1
to your request
Will never return the value sent in :state
URL param.
Returns on success:
{
"data":{
"state":"Washington"
}
}
Returns on error:
{
"status": 451,
"errors": [
{
"status": 451,
"detail": "Connecticut: is unavailable for legal reasons."
}
]
}
- NOTE: To force an error append
?error=1
to your request - NOTE: To force an success append
?success=1
to your request - NOTE: To force a timeout append
?timeout=1
to your request
npm install
npm run dev
http://localhost:9923/api/roadtrip