Fitgap mock API

Every response here is derived from the OpenAPI definition, not hand-written fixtures.

curl https://api.fitgap.org/v1/targets \
  -H "Authorization: Bearer anything"

Docs: docs.fitgap.org · Source: github.com/jloor/fitgap

Two behaviours are simulated: a target id beginning tgt_fail makes POST /targets/{id}/analyses return 409 gate_failed unless the body sets overrideGate: true; and POST /gaps/{id}/excavations always resolves the gap.

Failing on purpose

Most integration time is spent on the bad days, so they are reproducible here. Send X-Fitgap-Simulate with 500, 502, 429, 401, slow or timeout — or use an id ending _500, _429, _slow, _timeout when you cannot set headers.