@capable-health/client
v0.0.21
Published
Typescript client to access Capable Health APIs. Generated from the published `openapi` spec.
Downloads
19
Keywords
Readme
Capable Client
Typescript client to access Capable Health APIs. Generated from the published openapi
spec.
Libraries Used
openapi-typescript-codegen
- Axios
Usage
const capableClient = new CapableClient({TOKEN: () => Auth.user.getAccessToken()});
const result = await capableClient.patients.getPatients();
console.log(result);
Regenerating
If the spec is updated,
- Copy the new spec to
swagger.yaml
- Run the following in the root of the project
pnpm run build