README.md

# ApiPlayground

## Installation

Add `api_playground` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [
    {:api_playground, "~> 0.1.0"}
  ]
end
```

Then in your router:

```elixir
defmodule MyAppWeb.Router do
  use MyAppWeb, :router

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/api", MyAppWeb do
    pipe_through :api
  end

  # Add this!
  if Mix.env == :dev do
    forward "/playground", ApiPlayground, routes: Enum.reverse(Module.get_attribute(__MODULE__, :phoenix_routes))
  end
end
```