Auto Doc: Effortless OpenApiSpex Documentation

Welcome to Auto Doc, your ultimate solution for generating comprehensive OpenApiSpex documentation in minutes!

With Auto Doc, gone are the days of spending endless hours crafting API documentation. Simply adhere to our standardized directory hierarchy and naming conventions within your project, and let Auto Doc handle the rest.

Key Features:

Installation

Add the following dependencies to mix.exs file deps/0 function.

Note: We'll need Jason and HTTPoison to format the data and do the API calls.

{:jason, "~> 1.2"},
{:httpoison, "~> 2.0"},
{:auto_doc_package, git: "https://github.com/zen-dev-lab/auto_doc_package"}

Registration

  1. Go to auto-doc.fly.dev
  2. Click Sign in
  3. Register via Github OAuth
  4. Being forwarded to your dashboard page where a personal user token can be seen(important for later)

Register via Github

Personal Github Access Token

For Authorizing API calls to Auto Doc, you'll need a personal access token.

  1. Navigate to settings/tokens page here
  2. Click Generate new token
  3. Give it some name and set your expiration date to 90 days or more
  4. Click Generate token
  5. Copy your personal access token (important in for the next step)

Github access token

Setup ENV Variables

In your .env file, add the following ENV Variables:

# The Token shown in your Dashboard
export AUTO_DOC_USER_TOKEN="your-user-token-here"
# The Github Access Token we just created in the previous step
export GITHUB_ACCESS_TOKEN="your-access-token-here"

To apply the changes done to the file, run the following command in your IDE terminal:

source .env

That's it! You can now use the package and API. 🙌

AutoDocPackage usage