A client for the Aurora Cloud Console API.
This client is generated automatically on a schedule based on the OpenAPI specs published at https://app.auroracloud.dev/api.
yarn add @aurora-is-near/aurora-cloud-console-sdk
Once the API client has been generated it can be instantiated as follows:
import { createApiClient } from '@aurora-is-near/aurora-cloud-console-sdk';
const client = createApiClient({ apiKey: 'MY-API-KEY' });
Where the API key is generated via the Aurora Cloud Console dashboard.
The generated client object exposes functions for each API operation, as defined by the OpenAPI specification. Each function is called with an object containing the following properties:
An object containing properties that are mapped to any named route parameters.
For example, if you have the route /user/:name
, then the name
property should
be passed in as params: { name: 'Alex' }
.
An object containing a property for each query string parameter.
An object containing key-value to submit as the request body (i.e. for POST or PUT requests).