JSPM

  • Created
  • Published
  • Downloads 4541
  • Score
    100M100P100Q123961F
  • License MIT

An HTTP Snippet client for generating snippets for the api module.

Package Exports

  • httpsnippet-client-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (httpsnippet-client-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

httpsnippet-client-api

An HTTP Snippet client for generating snippets for the api module.

npm Build

Installation

npm install --save httpsnippet-client-api

Usage

const httpsnippet = require('httpsnippet');
const client = require('httpsnippet-client-api');

HTTPSnippet.addTargetClient('node', client);

const snippet = new HTTPSnippet(harObject);
console.log(
  snippet.convert('node', 'api', {
    apiDefinitionUri: 'https://example.com/openapi.json'
    apiDefinition: {
      /* an OpenAPI definition object */
    }
  })
);