apigee-127/swagger-tools

URI /api-docs and /docs are mixed badly

Closed this issue · 10 comments

The swagger UI server displays /api-docs on the left of the button "Explore" but sends to this same api home page ?! the same same for /docs from browser ??!!??!!

Just under it the link /api-docs sends to Document where JSON tab is in fact a YAML file ??
Raw tab is in fact JSON file ?!?

Disappointing isn't it ?

Disappointing is the way you explain your opinion on the matter. I do not control how swagger-ui works but even if I did, do you think the way you've approached things is appropriate? Yeah...disappointing.

swagger-tools just includes swagger-ui and doesn't generate anything. It passes the URL to swagger-ui and that's it. Regardless, your approach was far from acceptable. If you want help from anyone, try being less abrasive about it.

You are complaining about something that makes no sense. Attached is a screenshot of swagger-tools and the swagger-ui it includes. The URLs presented everywhere are as they should be. What's your unmet expectation?

screen shot 2018-08-07 at 10 21 40 am

And why do you think talking to people like this is okay? How do you ever expect to get help from people treating them like trash and bad mouthing the project you want help with?

And this is my last message, I don't mind taking feedback. But your approach needs work and is not one bit constructive. And seeing that the swagger-tools middleware is NEVER handed a YAML file, how can it deliver a YAML file back? swaggerTools#initializeMiddleware is given a JavaScript object so it makes sense to get back JSON.

So much for "last message"... I do not own swagger-ui. If you click any button on it and it doesn't work like you want, that's not the fault of swagger-tools. I've said this already. There is NOTHING in the swagger-tools middleware that will use YAML directly or generate YAML. This is a swagger-ui issue.

@BulleSeeker you don't need to be boorish. Not only the point @whitlockjc is accurate, the tragic way you convey your opinion makes you look like miserable. This project has been around for years, contributed by many and loved by thousands, please be respectful.