Code Monkey home page Code Monkey logo

lucy-console's Introduction

LucyBot API Console

Interactive documentation for your API

We utilize OpenAPI (formerly Swagger) to generate both static documentation and an interactive API console

If you use another type of API specification, such as RAML, WADL, or API Blueprint, you can use api-spec-converter to generate an OpenAPI document.

Demo

You can see the console in action for over 250 different APIs at AnyAPI.

You can also see the Hacker News example contained in this repository.

Usage

Simply clone this repository, and replace swagger.json with your Swagger file. You can then serve the site statically using Apache, NodeJS, or whatever else.

To change the title of the console, edit styles.css.

If you work on the gh-pages branch of your fork, you should be able to see it running at

https://your-username.github.io/lucy-console

You can also add additional styles or by editing styles.css, or replacing minified/css/bootstrap.css with a custom Bootstrap theme.

Serving for Multiple APIs

You can serve these assets for several different APIs by introducing a server-side component, e.g. NodeJS with Express:

var path = require('path');
var express = require('express');
var app = express();
app.get('/:api_name/swagger.json', function(req, res) {
  res.json(require('./specs/' + req.params.api_name + '_swagger.json'));
});
app.use('/:api_name', express.static(__dirname));

Commercial Version

A commercial version of the LucyBot console is also available for a one-time licensing fee.

Additional features include:

  • Sample code generation
  • Recipes (step-by-step tutorials for complex workflows)
  • Embeddable UI components
  • Simple customization and branding
  • Custom authentication schemes
  • API galleries and discovery
  • Support via phone and e-mail

Please contact [email protected] for more information

Where's v1?

We've decided to merge this open-source project with our commercial product in order to reduce code duplication. The assets in this repository are auto-generated from the upstream commercial repository.

v1 will continue to exist on the master branch, and we will continue responding to bugs and pull requests. However, all active development will take place in the commercial repository, with some features propagating down into this branch.

We encourage all existing users to migrate to the static-site branch or consider purchasing a commercial license.

Contributing

The files in this repository are entirely auto-generated, with the exceptions of swagger.json and styles.css. If you'd like to contribute, let us know and we'll add you to the upstream repository.

lucy-console's People

Contributors

lucybot avatar rbren avatar

Watchers

 avatar  avatar

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.