Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vkatsuba opened this issue Oct 1, 2024 · 3 comments
Open

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

vkatsuba opened this issue Oct 1, 2024 · 3 comments

Comments

@vkatsuba
Copy link

vkatsuba commented Oct 1, 2024

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
Copy link
Member

For reference, it's set here:

REPLACE="window.location.origin + \"/api-docs/swagger.json\""

@paulo-ferraz-oliveira
Copy link
Collaborator

There's this: #204

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

@vkatsuba
Copy link
Author

vkatsuba commented Oct 3, 2024

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

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

No branches or pull requests

3 participants