peter004

Results comments of peter004

nop, I believe I had the older version got it from here: https://github.com/wordnik/swagger-core/tree/master/samples/no-server I downloaded the latest UI (from the link above) and in index.html I changed the discoveryUrl to...

Ahh its throwing this error: (why Origin is "http://localhost", shouldn't it suppost to be "http://localhost:8000" ?) XMLHttpRequest cannot load http://localhost:8000/api-docs.json. Origin http://localhost is not allowed by Access-Control-Allow-Origin. localhost:1 Unable to...

Also: No "Access-Control-Allow-Origin: *" $ curl -i http://localhost:8000/api-docs.json HTTP/1.0 200 OK Date: Fri, 08 Mar 2013 02:04:34 GMT Server: Apache/2.2.22 (Ubuntu) Vary: Accept-Encoding Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8 { "apiVersion":"1.0",...

yup files are there I can access them from browser like: https://localhost:8000/api-docs/v1 but its just not working with UI! and throwing this error: "Can't read from server. It may not...

Sorry, I should have mentioned I'm using no-server UI

found "this.switchToDescription()" in swagger-ui.js and changed it to "this.switchToSnippet();" and its working! thank you for your help! :+1: