Changes for the node/js split

This commit is contained in:
2020-12-22 15:22:57 +01:00
parent 5420f8ce37
commit 543379d7e4
3 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
# ODIT.Services - LfK-Client
# ODIT.Services - LfK-Client (Node Version)
The official library for the LfK [backend server](https://git.odit.services/lfk/backend).
Automagicly™ generated by [openapi-typescript-codegen](https://www.npmjs.com/package/openapi-typescript-codegen)
@@ -9,7 +9,7 @@ Get's automagicly™ build by drone for every new backend release.
Basic example: Get all tracks
```typescript
import {OpenAPI, TrackService} from "@odit/lfk-client";
import {OpenAPI, TrackService} from "@odit/lfk-client-node";
OpenAPI.BASE = "https://localhost:4010";
console.log(await TrackService.trackControllerGetAll());
```
@@ -18,9 +18,9 @@ console.log(await TrackService.trackControllerGetAll());
Via yarn/npm:
```bash
yarn add @odit/lfk-client
yarn add @odit/lfk-client-node
# Or
npm i @odit/lfk-client
npm i @odit/lfk-client-node
```
Or just copy the folder `dist` to your prefered lib folder and import everything you need from `dist/index.ts`.