Hi all,
First, I don't believe I understand the organization of Swagger's docs, so if "RTFM" is an appropriate answer, please feel free to guide me to where that "M" is :)
I have an app that's using Swagger UI for documentation. I had it working with a fairly recent version of the UI (but I don't know what version as I don't know where to find this information, the download page doesn't seem to tell me that. Again, I fear that I'm failing to understand something). Anyway, it was working tolerably, but in an attempt to fix some things related to sub-resources, I upgraded to whatever version of the UI I downloaded yesterday and the 1.3.0RC3 release of Swagger for my JAX-RS service.
I took the UI "index.html" file, and changed the base uri so that it would connect to my service instead of the petstore (Is this really the right file to be working with? It's the only one I found that seemed to be a contender for this role) and it connects to my api-docs URI and shows the entry point listings more or less (still some sub-resources issues). Unfortunately, when I try to invoke an operation, even a simple one, it fails. What I notice in Chrome's javascript console is that it appears to be connecting to the wrong port. That is, the URI to which I connected it for the api-docs is
http://localhost:8080/blah... but when it attempts to invoke an operation, it connects to
http://localhost/blah... without the 8080. More strange, it gets a result that is "no content", and I can't tell if the UI means "that didn't work" (there should be nothing listening on port 80) or if it actually got a response of some kind, but that response was empty. A third possibility, I suppose, is that it's failing for other unrelated reasons, and the JS console in Chrome is mis-reporting the URI, but that seems unlikely. BTW, I use other tools to connect to my service, and those are successful, so I know for sure that my service is working properly.
Any guidance?
Thanks!
Simon