0.6.1 • Published 4 months ago

wso2apim-sdk v0.6.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

wso2-api-client

JS lib for invoking WSO2APIM Rest APIs for managing published APIs. Typescript friendly.

Most of this codebase was autogenerated from Swagger APIs found at the official website. On top of it we added a client layer based on openapi-fetch

Currently only WSO2APIM v3 is supported (API spec v1).

Some pieces of code and experiences were extracted from serverless-wso2-apim. Thanks, Ram!

Check documentation for the calls on type documentation at client.devportal.GET or client.publisher.GET (and other methods).

Usage

import { WSO2APIMSDK, WSO2APIMConfig } from 'wso2apim-sdk';

// prepare api client
const myConfig: WSO2APIMConfig = {
  baseUrl: 'https://testwso2.com',
  username: 'user1',
  password: 'passwd1',
};
const client = await WSO2APIMSDK.create(myConfig);

// list all apis in devportal
const res = await client.devportal.GET('/apis', {
    params: { header: {}, query: { query: 'name' } },
});

// get details about api '123-456' in publisher portal
client.publisher.GET('/apis/{apiId}', {
    params: {
        path: { apiId: '123-456' },
        header: {},
    },
});
0.6.1

4 months ago

0.6.0

4 months ago

0.5.0

4 months ago

0.4.1

4 months ago

0.4.0

4 months ago

0.3.0

4 months ago

0.1.0

4 months ago

0.2.0

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago