{"action":"opened","issue":{"url":"https://api.github.com/repos/pol-is/issues/issues/8","repository_url":"https://api.github.com/repos/pol-is/issues","labels_url":"https://api.github.com/repos/pol-is/issues/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/pol-is/issues/issues/8/comments","events_url":"https://api.github.com/repos/pol-is/issues/issues/8/events","html_url":"https://github.com/pol-is/issues/issues/8","id":193312877,"number":8,"title":"Help with swagger docs' interactive features","user":{"login":"patcon","id":305339,"avatar_url":"https://avatars.githubusercontent.com/u/305339?v=3","gravatar_id":"","url":"https://api.github.com/users/patcon","html_url":"https://github.com/patcon","followers_url":"https://api.github.com/users/patcon/followers","following_url":"https://api.github.com/users/patcon/following{/other_user}","gists_url":"https://api.github.com/users/patcon/gists{/gist_id}","starred_url":"https://api.github.com/users/patcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcon/subscriptions","organizations_url":"https://api.github.com/users/patcon/orgs","repos_url":"https://api.github.com/users/patcon/repos","events_url":"https://api.github.com/users/patcon/events{/privacy}","received_events_url":"https://api.github.com/users/patcon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-03T20:54:11Z","updated_at":"2016-12-03T20:54:11Z","closed_at":null,"body":"So the best part about a swagger spec is that it creates interactive docs in the browser:\r\nhttp://petstore.swagger.io/?url=https://patcon.github.io/polis-api-spec/swagger.json#!/Conversations/get_conversations\r\n\r\nFor the interactive docs to work, the endpoint needs to allow CORS support (since the docs page is hosted on a non-pol.is domain.) Usually, I'd get around this by setting up a simple [Argo](https://github.com/argo/argo#adding-cross-origin-resource-sharing) API proxy, like I've done here: https://github.com/patcon/polis-api-proxy\r\n\r\nIn the pol.is Swagger API docs, I've subbed in the proxy host, and you'll see that if you test it out here:\r\nhttp://petstore.swagger.io/?url=https://patcon.github.io/polis-api-spec/swagger.json#!/Conversations/get_conversations\r\n\r\nBut I'm really confused why a 500 error is being thrown. I've confirmed that the proxy works via curl, and that only the web ui going through the proxy causes the error. And I've confirmed that that error is not from the proxy, but from the actual pol.is API.\r\n\r\nAny idea what is happening on your end? I'm hitting this URL via the Swagger browser API explorer btw:\r\nhttps://polis-api-proxy.herokuapp.com/api/v3/conversations?conversation_id=78nfpz"}}
{"actor":{"display_login":"patcon"}}