Skip to content

Commit e469f38

Browse files
EricWittmannandreaTP
authored andcommitted
Created initial typescript-sdk module with basic structure
1 parent fe0d5d5 commit e469f38

16 files changed

+4779
-0
lines changed

typescript-sdk/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

typescript-sdk/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Apicurio Registry Typescript SDK
2+
This library provides an SDK for Apicurio Registry for use in Node.js and front-end (UI)
3+
applications. It is written in Typescript using Kiota to generate the REST client.
4+
5+
## Building
6+
Use standard Node/NPM tooling to build the code in this library.
7+
8+
```
9+
npm install
10+
npm run lint
11+
npm run build
12+
```

typescript-sdk/index.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Apicurio Registry Typescript SDK</title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>

typescript-sdk/lib/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./sdk";

typescript-sdk/lib/sdk/client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export class RegistryClientFactory {
2+
3+
public test(): void {
4+
console.info("TEST COMPLETE");
5+
}
6+
7+
}

typescript-sdk/lib/sdk/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./client";

typescript-sdk/lib/vite-env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

0 commit comments

Comments
 (0)