https://linen.dev logo
Title
t

Tom

02/02/2023, 5:57 PM
You can set up a default stub (priority of 10 and no URL specified, so will match any) with whatever default response you’d like if you don’t want to get the diffs
s

SAAF

02/02/2023, 5:59 PM
Hey @Tom Thanks for the answer, i will try this! And what if i would like to do an health check ?
t

Tom

02/02/2023, 6:00 PM
I'd suggest creating a basic stub matching whatever URL you want the healthcheck to be on
That just returns an empty 200 maybe
a

Aaron

02/02/2023, 6:05 PM
I usually have a
/health-check
endpoint that does exactly what Tom describes.
{
  "request": {
    "url": "/health-check"
  },
  "response": {
    "status": 200,
    "bodyFileName": "health-check.json"
  }
}
I usually include a
bodyFileName
just to make sure that the
__files
folder is hooked up, but when hitting the
/health-check
I usually just check for the status code.
/// __files/health-check.json
{
  "health": "succeeded"
}
🙏 1