Skip to content

Commit 5bab23f

Browse files
aaronzijannikf02
andauthored
API Update (#110)
* Updates to newer version of client-fetch Co-authored-by: jannikf02 <jannikf02@users.noreply.github.com> * Uses swagger auto gen client code Co-authored-by: jannikf02 <jannikf02@users.noreply.github.com> * Removes unused dependencies * Adds AasRepositoryService to generated directory * Fixes imports * Futher updates the aas repository client * Finalizes update of AasRepositoryClient * Fixes unit tests for AAS type conversion * Removes unused files * Fixes FetchAPI selection * Updates generated code * Fixes problem with autogeneration * Adds Missing export * removes entire api collection * Fixes unit tests * Improves ease of configuration * Updates readme --------- Co-authored-by: jannikf02 <jannikf02@users.noreply.github.com>
1 parent 86e8648 commit 5bab23f

32 files changed

+14368
-33007
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ yarn add @aas-core-works/aas-core3.0-typescript
4545
## Usage
4646

4747
```typescript
48-
import { AasRepositoryClient } from 'basyx-typescript-sdk';
48+
import { AasRepositoryClient, Configuration } from 'basyx-typescript-sdk';
4949

5050
async function getAllShells() {
51-
const baseURL = 'http://localhost:8081';
5251
const client = new AasRepositoryClient();
52+
const configuration = new Configuration({
53+
basePath: 'http://localhost:8081',
54+
});
5355

5456
try {
55-
const response = await client.getAllAssetAdministrationShells({ baseUrl: baseURL });
57+
const response = await client.getAllAssetAdministrationShells({ configuration });
5658
console.log('Asset Administration Shells fetched successfully:', response);
5759
// You can now use the response as needed
5860
} catch (error) {

openapi-ts.config.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)