Use Elixir 1.9 with {: phoenix_swagger, “~> 0.8.1”} in phoenix, “~> 1.4.7”.
It is not mapping my routes.
Since the controller I posted
swagger_path :index do
get "/test"
summary "List all recorded activities"
description "List all recorded activities"
response 200, "Ok", Schema.ref(:Trackers)
end
def index(conn, _params) do
render(conn, "index.json", trackers: %{a: 'a'})
end
Result:
{
"swagger": "2.0",
"paths": {""},
"info": {
"version": "1.0",
"title": "My API"
},
"host": "localhost:4000",
"definitions": {...}
}