@harnessio/react-statuspage-service-client
v0.2.0
Published
Harness React Status Page service client - Status Dashboard APIs integrated with react hooks
Keywords
Readme
React Status Page Service Client (WIP)
OpenAPI -> OA
TypeScript -> TS
OpenAPI + TypeScript -> OATS
This React API client stores Harness Status Dashboard Service APIs and interface contracts generated from the Open API Spec using OATS CLI internally.
APIs use hooks from @tanstack/react-query.
Steps to generate the API client build (dist folder)
yarn buildFor NextGen UI adoption: HarnessReactAPIClient must be initialized
Before using the API client, it must be initialised with the required ClientCallbacks.
Example:
new HarnessReactAPIClient({
getHeaders: () => {
return { token: SessionToken.getToken(), 'Harness-Account': accountId }
}
})Versioning
Once the development phase is complete, this repo will have changes and versioning driven by API spec only.
License
MIT. Copyright(c) Harness Inc
