Skip to content

Autogenerate OpenAPI spec#6

Open
imranismail wants to merge 5 commits into
masterfrom
feature/open-api
Open

Autogenerate OpenAPI spec#6
imranismail wants to merge 5 commits into
masterfrom
feature/open-api

Conversation

@imranismail

@imranismail imranismail commented Jul 8, 2019

Copy link
Copy Markdown
Owner

A working proof of concept for #4

# /config/config.exs
config :watchtower, Watchtower.Spec,
  router: Watchtower.Router

# /lib/watchtower/spec.ex
defmodule Watchtower.Spec do
  use Parameters.OAS3,
    otp_app: :watchtower,
    info: [
      title: "Watchtower API Spec",
      version: "1.0.0",
    ],
    content_types: [
      api: "application/json"
    ],
    accepts: [
      api: "application/json"
    ]
end

Screen Shot 2019-07-09 at 2 51 06 AM

@imranismail imranismail changed the title Feature/open api Autogenerate OpenAPI spec Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant