You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A TypeScript SDK generator that automatically creates a fully-typed client library for your API200 services. Generate type-safe API clients with zero configuration and full IDE support.
4
+
5
+
## Features
6
+
7
+
-**Automatic Type Generation**: Creates TypeScript interfaces from your API schemas
8
+
-**Full Type Safety**: Compile-time error checking for API calls
9
+
-**Zero Configuration**: Works out of the box with sensible defaults
10
+
-**Path & Query Parameters**: Handles both path variables and query strings
11
+
-**Request Body Support**: Type-safe request body handling for POST/PUT/PATCH
12
+
-**Error Handling**: Structured error responses with status codes
13
+
-**IDE Support**: Full IntelliSense and autocomplete support
14
+
15
+
## Prerequisites
16
+
17
+
1.**Register with API200**: Sign up at [API200](https://api200.co) and set up your API proxy platform
18
+
2.**Import/Create Services**: Add your API services to the API200 platform
19
+
3.**Get API Token**: Obtain your user token from the API200 dashboard
20
+
21
+
## Installation
22
+
23
+
Generate your SDK using npx (no installation required):
24
+
25
+
```bash
26
+
npx api200-generate-sdk -t YOUR_API_TOKEN
27
+
```
28
+
29
+
## Command Options
30
+
31
+
| Option | Short | Description | Default |
32
+
|--------|-------|-------------|---------|
33
+
|`--token`|`-t`|**Required.** Your API200 user token ||
34
+
|`--base-url`|`-u`| Base API URL |`https://eu.api200.co/api`|
35
+
|`--output`|`-o`| Output directory |`./src/lib/api200` or `./lib/api200`|
0 commit comments