inaka / cowboy_swagger

Swagger integration for Cowboy (built on trails)
http://inaka.net/blog/2015/08/19/cowboy-swagger/
Apache License 2.0
122 stars 58 forks source link

Add possibility to configure own path to `/api-docs/swagger.json` #206

Open vkatsuba opened 1 month ago

vkatsuba commented 1 month ago

The /api-docs/swagger.json is hardcoded at https://github.com/inaka/cowboy_swagger/blob/2.7.0/priv/swagger/swagger-initializer.js#L6 and it lead to issues if few dependencies in the project are use this great library for creating Swagger. It will be nice if path to /swagger.json can be configured or at least depended by name of application where this library is used.

elbrujohalcon commented 1 month ago

For reference, it's set here: https://github.com/inaka/cowboy_swagger/blob/24334d88d76770f32ee0eed2218c94e7e2eb8720/.github/workflows/up_swagger.sh#L25

paulo-ferraz-oliveira commented 1 month ago

There's this: https://github.com/inaka/cowboy_swagger/pull/204

I don't know if you also want to review, @vkatsuba, or maybe just cheer for the developer 😄

vkatsuba commented 1 month ago

Nice! It looks like I not only one person who want to have it! 😄