cloudapi-gql
v8.0.0
Published
[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0) [![Build Status](https://secure.travis-ci.org/joyent/cloudapi-gql.svg)](http://travis-ci.org/joyent/cloudapi-gql)
Downloads
50
Keywords
Readme
cloudapi-gql
hapi plugin that exposes CloudApi through GraphQL.
Table of Contents
Install
npm install cloudapi-gql
Options
authStrategy
: name of the hapi auth strategy to use for/graphql
routekeyPath
private key file path for the key associated with Triton accountkeyId
: string in the form of/${SDC_ACCOUNT}/keys/${SDC_KEY_ID}
apiBaseUrl
: cloud API base URL to connect to
Usage
const server = new Hapi.Server();
await server.register({ plugin: CloudApiGQL, options: { authStrategy, keyPath, keyId, apiBaseUrl } });
Local development
npm run dev
npm run faker