The `contensis-core-api` package, currently at version 1.2.2, serves as a foundational dependency library within the Contensis ecosystem. Written in TypeScript, it provides common types, interfaces, and base methods shared across higher-level Contensis client libraries, specifically `contensis-delivery-api` and `contensis-management-api`. Its primary purpose is to offer standardized HTTP request handling, error structures, and data models that ensure consistency and reduce code duplication across various Contensis API interactions. While not typically consumed directly by most application developers, it provides the underlying infrastructure for interacting with the Contensis HTTP Delivery API and Management API. As a core dependency, its release cadence is usually tied to the evolution of the broader Contensis API clients, adhering to semantic versioning for internal changes.
npm install contensis-core-apiVerified import paths — ran on the pinned version, not inferred.
Illustrates the usage of core types like `HttpClient`, `HttpMethod`, and `CallError`, demonstrating a low-level HTTP request pattern. This package is typically a dependency and not used directly for API calls by end-user applications.
For interacting with Contensis APIs, prefer `contensis-delivery-api` for read-only content or `contensis-management-api` for content management operations.
Always check the release notes and migration guides for `contensis-delivery-api` and `contensis-management-api` when updating to a new major version of any Contensis SDK. Pay attention to type definition changes and API instantiation methods.
Ensure your Node.js environment meets the minimum requirement. For client-side usage, ensure your build process correctly handles browser compatibility.
Use ES module `import` syntax: `import { HttpClient } from 'contensis-core-api';`. If in a CommonJS environment, configure your project for ESM or ensure your transpiler handles `import`/`export` correctly.Ensure `contensis-core-api` is installed (`npm install contensis-core-api` or `yarn add contensis-core-api`). Verify `tsconfig.json` includes `"compilerOptions": { "moduleResolution": "Node" }` and implicitly or explicitly includes `node_modules` in its `include` path.No dependency data recorded yet.