inooid / ex_slack_api_docs

A Mix task for generating json files from the Slack API docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mix Task Slack API Docs

A mix task for generating JSON API docs based on the Slack API. The format is similar to the deprecated repository: https://github.com/slackhq/slack-api-docs.

Installation

You can either add it as a dependency in your mix.exs, or install it globally as an archive task.

To add it to a mix project, just add a line like this in your deps function in mix.exs:

def deps do
  [
    {:slack_api_docs, "~> 0.1.2", only: [:dev], runtime: false}
  ]
end
mix do deps.get, deps.compile

Usage

mix slack_api_docs.gen.json lib/slack/web/docs

If you want to validate the generated output against remote, you can simply run:

mix slack_api_docs.verify lib/slack/web/docs

Command line options

  • --concurrency 75 - default: 50, the amount of requests running in parallel
  • --quiet - suppress all informational messages.

About

A Mix task for generating json files from the Slack API docs

License:Other


Languages

Language:Elixir 100.0%