jensoleg / swagger-ui

Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
http://swagger.io
Other
1.13k stars 310 forks source link

Remove # from url before appending `/swagger.json` #56

Closed Mechazawa closed 8 years ago

Mechazawa commented 8 years ago

Fixes #53

AkashMalhotra commented 8 years ago

I'm still getting the following error after I applied your change. How do I fix it

GET http://localhost:8081//swagger.json 404 (Not Found) spec-converter.js:60 Uncaught Can't read swagger JSON from http://localhost:8081//swagger.json

Mechazawa commented 8 years ago

The latest commit should fix it.

AkashMalhotra commented 8 years ago

Okay I'll do them manually in my file since this is not pushed to master yet. Also, do you know how I can use this UI with multiple json/yaml files?

Mechazawa commented 8 years ago

@AkashMalhotra You can just clone my fork and then do git checkout fix/53