elixir-maru / maru_swagger

Add swagger compliant documentation to your maru API
BSD 3-Clause "New" or "Revised" License
57 stars 17 forks source link

aspiration changed #16

Open AndwareSsj opened 7 years ago

AndwareSsj commented 7 years ago

I wish to change gen json way. make version route usefully in swagger doc. for example:

version:v1
http://127.0.0.1:4000/v1/swagger

version:v2
http://127.0.0.1:4000/v2/swagger

v1 is swagger json file and v2 is swagger json file.

so we can redefine swagger doc "tag", and make it rich to custom like it:

desc "user" do
  tag "user"
end
falood commented 7 years ago

You're right, I should make tag match swagger protocol, will do it next version. Also thank you for your suggestion about the DSL.