-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unsure how to enable Swagger UI / JSON when running from Docker #116
Comments
The problem seems like the docker-compose up is not generating the documentation xml file (or the path to it is different). But since you are mainly interested in the swagger file, I have simply attached the file to this response: Does that work? |
This has been some spaghetti... so... I've managed to load gonorth_swagger.json into Swagger UI Dist, which involved a bunch of string and tape... But when I call one of the commands, e.g. For the record, I'm proxying http://localhost:7200/api/ to http://localhost:5000/ - where GoNorth is running in Docker. I think this would be much cleaner if I could get it running and hosted correctly via Docker. Basically I feel like all my data is stuck inside the GoNorth instance at the moment and is quite difficult to get at. |
Stored my reference code a gist: |
Thanks for providing a gist! I'll check it out soon. It might be a login issue, but then you should get a 401 and not a 500. I'll report back as soon as I know more. In the meantime: If accessing the webservices are too complicated (I did not really worked on them being easily accessible for a third party application) and you mainly want to extract data, you might simply access the MongoDB? |
After reading:
And running GoNorth via docker instructions...
By default, I get no response on the endpoints.
And if I change this code:
to
(and rebuild docker with
docker-compose up --build
, I get a HTML page with name, showing this error:And this error on the command line:
Would like to build a client to export data from the tool to use with my prototype game system. I thought the Swagger API would be a good place to start.
The text was updated successfully, but these errors were encountered: