1.0.4 • Published 8 years ago

@datafire/lucybot_docs v1.0.4

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

@datafire/lucybot_docs

Use this integration to document your DataFire API.

Usage

npm install --save @datafire/lucybot_docs

Add this to your DataFire.yml:

paths:
  /documentation/{filename}:
    get:
      extendPath: 5
      action: lucybot_docs/serve

Your documentation will be available at http://localhost/documentation/index.html

Changing OpenAPI

You can edit DataFire.yml to change the hostname, title, description, etc:

openapi:
  host: api.acme.com:8080
  schemes:
    - https
  info:
    title: ACME API
    description: |
      # ACME API Documentation
      Welcome to the ACME API! Visit [this link](http://acme.com/key) to get an API key

paths:
  /documentation/{filename}:
    get:
      extendPath: 5
      action: lucybot_docs/serve