Skip to content

[SDK] SDK documentation - JavaScript#138

Open
CoolatMax wants to merge 1 commit into
abm-dev-git:developfrom
CoolatMax:sdkdocsj
Open

[SDK] SDK documentation - JavaScript#138
CoolatMax wants to merge 1 commit into
abm-dev-git:developfrom
CoolatMax:sdkdocsj

Conversation

@CoolatMax
Copy link
Copy Markdown

This PR introduces comprehensive documentation for the JavaScript/TypeScript SDK. As part of the Phase 2 enhancements, this documentation provides developers with a clear path from installation to advanced error handling, ensuring the SDK is accessible for both Node.js and Browser environments.

Related Issues

Closes #120

Parent Epic #116

Changes Made

  • Created docs/sdk-js.md: Centralized guide for the JS/TS SDK.

  • Installation Guide: Detailed the npm installation process and package naming.

  • Authentication: Documented the KongAdminClient constructor logic and environment variable usage ($KONG\_ADMIN\_URL$).

  • API Reference: Mapped and documented core methods from client.ts including Consumer and Key-Auth management.

  • Error Handling: Documented custom error classes (KongApiError, ConsumerNotFoundError) mapped from errors.ts.

  • TypeScript Support: Added examples for using exported interfaces and types for better DX.

Image

ss1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SDK] SDK documentation - JavaScript

1 participant