@opvious/api

0.22.0 • Public • Published

Opvious API

This package contains auto-generated SDKs and types for the Opvious API. It is suitable for use both client-side and server-side.

Quickstart

import {createSdk, createGraphqlSdk} from '@opvious/api';

// REST SDK (data operations)
const sdk = createSdk({
  // Optional authorization token
  headers: {authorization: `Bearer ${process.env.OPVIOUS_TOKEN}`},
});

// GraphQL SDK (metadata operations)
const graphqlSdk = createGraphqlSdk(sdk);

Note that several SDK methods require an API access token. You can generate one here.

Included resources

This package also includes the following resource files:

  • OpenAPI specification (resources/openapi.yaml);
  • GraphQL schema (resources/graphql/schema.gql);
  • GraphQL operations (resources/graphql/**/*.graphql).

These can be used to generate your own SDKs.

Related libraries

Readme

Keywords

Package Sidebar

Install

npm i @opvious/api

Weekly Downloads

70

Version

0.22.0

License

Apache-2.0

Unpacked Size

606 kB

Total Files

48

Last publish

Collaborators

  • opvious-eng