The `grexx-api` package provides a strongly-typed TypeScript client for interacting with the Grexx Platform API, which is generated from an OpenAPI 3.0.2 specification. It enables developers to manage various Grexx platform entities such as cases, datasets, forms, and tasks programmatically. This client abstracts the HTTP request details, offering a more intuitive and type-safe interface for API operations. As of version 13.6.2, it is actively maintained, with new releases typically aligning with updates to the underlying Grexx Platform API or improvements in the OpenAPI generator itself. Its primary differentiator is the full TypeScript support, ensuring compile-time safety and a better development experience compared to direct HTTP requests.
npm install grexx-apiVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing the Grexx API client and retrieving information for a specific case using the `CaseService`.
Always review the release notes or changelog for specific breaking changes when upgrading major versions. Regenerate or update client code if you are using a custom OpenAPI generator, and adapt your application code to the new API contract.
For multi-tenant or multi-user applications, consider wrapping API calls within a function or class that accepts configuration parameters specific to each request or user, or ensure that global settings are managed carefully with proper isolation mechanisms (e.g., using a fresh instance of the client configuration for each request if the library supports it, or dynamically setting it with care).
Store API keys and sensitive configurations in environment variables, a secure vault service (e.g., AWS Secrets Manager, HashiCorp Vault), or a `.env` file for local development. Access them at runtime using `process.env.YOUR_API_KEY`.
Ensure `import { CaseService } from 'grexx-api';` is at the top of your file and that `grexx-api` is correctly installed via `npm install grexx-api`.Verify that `OpenAPI.TOKEN` is set correctly with a valid, unexpired API key for your Grexx instance. Check the API key's permissions on the Grexx platform.
Double-check `OpenAPI.BASE` against your Grexx platform's API documentation. Confirm that the `casePath` or other resource identifiers are correct and exist on your Grexx instance.
No dependency data recorded yet.