{"action":"created","issue":{"url":"https://api.github.com/repos/sveint/flask-swagger-ui/issues/8","repository_url":"https://api.github.com/repos/sveint/flask-swagger-ui","labels_url":"https://api.github.com/repos/sveint/flask-swagger-ui/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/sveint/flask-swagger-ui/issues/8/comments","events_url":"https://api.github.com/repos/sveint/flask-swagger-ui/issues/8/events","html_url":"https://github.com/sveint/flask-swagger-ui/issues/8","id":258127313,"number":8,"title":"Recommended way to serve .yaml/.json","user":{"login":"rougeth","id":431892,"avatar_url":"https://avatars1.githubusercontent.com/u/431892?v=4","gravatar_id":"","url":"https://api.github.com/users/rougeth","html_url":"https://github.com/rougeth","followers_url":"https://api.github.com/users/rougeth/followers","following_url":"https://api.github.com/users/rougeth/following{/other_user}","gists_url":"https://api.github.com/users/rougeth/gists{/gist_id}","starred_url":"https://api.github.com/users/rougeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rougeth/subscriptions","organizations_url":"https://api.github.com/users/rougeth/orgs","repos_url":"https://api.github.com/users/rougeth/repos","events_url":"https://api.github.com/users/rougeth/events{/privacy}","received_events_url":"https://api.github.com/users/rougeth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-15T18:34:27Z","updated_at":"2017-09-21T02:13:11Z","closed_at":null,"author_association":"NONE","body":"I'm trying to find the best way to serve locally my swagger.json and set it up to `get_swaggerui_blueprint`. I'm not Flask fluent and the project I'm working on configured a resource that read the json file, load it into a dict and then returns it. Surely there is a better way.\r\n\r\nI believe would be better to have an example serving the swagger.json locally on the README.md, since it's probably the most common use."},"comment":{"url":"https://api.github.com/repos/sveint/flask-swagger-ui/issues/comments/331031201","html_url":"https://github.com/sveint/flask-swagger-ui/issues/8#issuecomment-331031201","issue_url":"https://api.github.com/repos/sveint/flask-swagger-ui/issues/8","id":331031201,"user":{"login":"rougeth","id":431892,"avatar_url":"https://avatars1.githubusercontent.com/u/431892?v=4","gravatar_id":"","url":"https://api.github.com/users/rougeth","html_url":"https://github.com/rougeth","followers_url":"https://api.github.com/users/rougeth/followers","following_url":"https://api.github.com/users/rougeth/following{/other_user}","gists_url":"https://api.github.com/users/rougeth/gists{/gist_id}","starred_url":"https://api.github.com/users/rougeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rougeth/subscriptions","organizations_url":"https://api.github.com/users/rougeth/orgs","repos_url":"https://api.github.com/users/rougeth/repos","events_url":"https://api.github.com/users/rougeth/events{/privacy}","received_events_url":"https://api.github.com/users/rougeth/received_events","type":"User","site_admin":false},"created_at":"2017-09-21T02:13:11Z","updated_at":"2017-09-21T02:13:11Z","author_association":"NONE","body":"Hi @sveint,\r\nWhen you say \"I believe serving any API itself is outside the scope\" you mean the documentation, right? I cannot see how serving the swagger .yaml/.json file too is outside the scope. Certently you can tell better them me, but in my experience, I never saw a case that would make sense split the documentation UI from its \"rules\" (I'm probably confusing concepts here).\r\n\r\nI would love to give a more useful contributing for the project but right now is not a good moment for me :/\r\n\r\nAnyway, thanks for the project!!"}}
{"actor":{"display_login":"rougeth"}}