Giter Site home page Giter Site logo

workflow-docs's Introduction

About the repository

This repository contains two parts: swagger json merge tool and a node application that serves WES api.

Swagger Combine

Why do swagger docs need to be combined?

The WES API is a standard that describes how to run and manage workflows. We currently have two workflow APIs: workflow management and workflow search. In order for the users to interact with all APIs through a single entry point, a combined swagger doc is needed for centralizing separate APIs.

Swagger combine(merge.js and diff.js)is a simple tool to shallow-merge two or more swagger 2.0 specs into one.

node merge.js <baseSpec> [specs...]

Positionals:
  baseSpec  Base spec URL                                               [string]
  specs     List of spec URLs to merge                                  [string]

Options:
  --help        Show help                                              [boolean]
  --version     Show version number                                    [boolean]
  --output, -o  Output filename, by default stdout will be used         [string]

Example:

  • combine 3 swagger specs:
node merge.js -o merged.json WES-swagger-template.json http://wf-search.light.overture.bio/v2/api-docs http://wf-management.light.overture.bio/v2/api-docs
    
  • WES-swagger-template.json is a pre-defined json template for WES api.
  • The tool outputs a merged swagger json merged.json
  • The example above merges workflow search swagger doc and workflow management swagger doc.

WES API Swagger Doc

This repo also contains a node application that uses swagger-ui-express to serve the combined WES API.

Install

npm install

Run

Run the application on default port 3000:

node app.js

Run the application on other port:

PORT=9999 node app.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.