JSPM

  • Created
  • Published
  • Downloads 353
  • Score
    100M100P100Q83990F
  • License BSD-3-Clause

Build API's and serverless code using node and first class functions.

Package Exports

  • openapi-factory

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 (openapi-factory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node OpenAPI Factory

API as first class node library to generate clients, servers, and documentation.

npm version Build Status

Create an API

    var ApiFactory = require('openapi-factory');
    var api = new ApiFactory();

    api.get('/example', (request) => {
        return {value: 'test'};
    });

    //OR
    api.get('/example', (request) => {
        new api.Response({ value: 'testWithStatus' }, { 'Content-Type': 'application/json' }, 200);
    });