{"action":"closed","issue":{"url":"https://api.github.com/repos/yvasiyarov/swagger/issues/125","repository_url":"https://api.github.com/repos/yvasiyarov/swagger","labels_url":"https://api.github.com/repos/yvasiyarov/swagger/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/yvasiyarov/swagger/issues/125/comments","events_url":"https://api.github.com/repos/yvasiyarov/swagger/issues/125/events","html_url":"https://github.com/yvasiyarov/swagger/issues/125","id":191750044,"number":125,"title":"Unable to read api from path","user":{"login":"congtranminh","id":3800509,"avatar_url":"https://avatars.githubusercontent.com/u/3800509?v=3","gravatar_id":"","url":"https://api.github.com/users/congtranminh","html_url":"https://github.com/congtranminh","followers_url":"https://api.github.com/users/congtranminh/followers","following_url":"https://api.github.com/users/congtranminh/following{/other_user}","gists_url":"https://api.github.com/users/congtranminh/gists{/gist_id}","starred_url":"https://api.github.com/users/congtranminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/congtranminh/subscriptions","organizations_url":"https://api.github.com/users/congtranminh/orgs","repos_url":"https://api.github.com/users/congtranminh/repos","events_url":"https://api.github.com/users/congtranminh/events{/privacy}","received_events_url":"https://api.github.com/users/congtranminh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-25T18:13:10Z","updated_at":"2016-11-25T18:27:19Z","closed_at":"2016-11-25T18:27:19Z","body":"Hi guys, thanks for your useful library. I got an issue when run the sample web ui on your code by run command \"go run web.go docs.go\". Here it is\r\nUnable to read api 'branches' from path https://api.example.com/branches (server returned undefined)\r\n![screen shot 2016-11-26 at 01 10 54](https://cloud.githubusercontent.com/assets/3800509/20633086/4571f268-b375-11e6-9de9-c98294aa679a.png)\r\n\r\nand here is my docs.go file \r\n\r\n```\r\npackage main\r\n//This file is generated automatically. Do not try to edit it manually.\r\n\r\nvar resourceListingJson = `{\r\n    \"apiVersion\": \"1.0.0\",\r\n    \"swaggerVersion\": \"1.2\",\r\n    \"basePath\": \"https://api.example.com\",\r\n    \"apis\": [\r\n        {\r\n            \"path\": \"/register\",\r\n            \"description\": \"Register API\"\r\n        },\r\n        {\r\n            \"path\": \"/branches\",\r\n            \"description\": \"Branches API\"\r\n        }\r\n    ],\r\n    \"info\": {\r\n        \"title\": \"example API\",\r\n        \"description\": \"API for example.com.\",\r\n        \"contact\": \"cong.tranminh@yctech.co\",\r\n        \"termsOfServiceUrl\": \"https://example.com/\",\r\n        \"license\": \"BSD\",\r\n        \"licenseUrl\": \"http://opensource.org/licenses/BSD-2-Clause\"\r\n    }\r\n}`\r\nvar apiDescriptionsJson = map[string]string{\"register\":`{\r\n    \"apiVersion\": \"1.0.0\",\r\n    \"swaggerVersion\": \"1.2\",\r\n    \"basePath\": \"https://api.example.com\",\r\n    \"resourcePath\": \"/register\",\r\n    \"produces\": [\r\n        \"application/json\"\r\n    ],\r\n    \"apis\": [\r\n        {\r\n            \"path\": \"/register/get-string-by-int/{some_id}\",\r\n            \"description\": \"get string by ID\",\r\n            \"operations\": [\r\n                {\r\n                    \"httpMethod\": \"GET\",\r\n                    \"nickname\": \"GetStringByInt\",\r\n                    \"type\": \"string\",\r\n                    \"items\": {},\r\n                    \"summary\": \"get string by ID\",\r\n                    \"parameters\": [\r\n                        {\r\n                            \"paramType\": \"path\",\r\n                            \"name\": \"some_id\",\r\n                            \"description\": \"Some ID\",\r\n                            \"dataType\": \"int\",\r\n                            \"type\": \"int\",\r\n                            \"format\": \"\",\r\n                            \"allowMultiple\": false,\r\n                            \"required\": true,\r\n                            \"minimum\": 0,\r\n                            \"maximum\": 0\r\n                        }\r\n                    ],\r\n                    \"responseMessages\": [\r\n                        {\r\n                            \"code\": 200,\r\n                            \"message\": \"\",\r\n                            \"responseType\": \"object\",\r\n                            \"responseModel\": \"string\"\r\n                        },\r\n                        {\r\n                            \"code\": 400,\r\n                            \"message\": \"We need ID!!\",\r\n                            \"responseType\": \"object\",\r\n                            \"responseModel\": \"string\"\r\n                        },\r\n                        {\r\n                            \"code\": 404,\r\n                            \"message\": \"Can not find ID\",\r\n                            \"responseType\": \"object\",\r\n                            \"responseModel\": \"string\"\r\n                        }\r\n                    ],\r\n                    \"produces\": [\r\n                        \"application/json\"\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}`,\"branches\":`{\r\n    \"apiVersion\": \"1.0.0\",\r\n    \"swaggerVersion\": \"1.2\",\r\n    \"basePath\": \"https://api.example.com\",\r\n    \"resourcePath\": \"/branches\",\r\n    \"produces\": [\r\n        \"application/json\"\r\n    ],\r\n    \"apis\": [\r\n        {\r\n            \"path\": \"/branches\",\r\n            \"description\": \"register as new customer\",\r\n            \"operations\": [\r\n                {\r\n                    \"httpMethod\": \"GET\",\r\n                    \"nickname\": \"getBranches\",\r\n                    \"type\": \"string\",\r\n                    \"items\": {},\r\n                    \"summary\": \"register as new customer\",\r\n                    \"parameters\": [\r\n                        {\r\n                            \"paramType\": \"header\",\r\n                            \"name\": \"Access_Token\",\r\n                            \"description\": \"Access Token\",\r\n                            \"dataType\": \"string\",\r\n                            \"type\": \"string\",\r\n                            \"format\": \"\",\r\n                            \"allowMultiple\": false,\r\n                            \"required\": true,\r\n                            \"minimum\": 0,\r\n                            \"maximum\": 0\r\n                        }\r\n                    ],\r\n                    \"responseMessages\": [\r\n                        {\r\n                            \"code\": 200,\r\n                            \"message\": \"\",\r\n                            \"responseType\": \"object\",\r\n                            \"responseModel\": \"string\"\r\n                        },\r\n                        {\r\n                            \"code\": 400,\r\n                            \"message\": \"We need ID!!\",\r\n                            \"responseType\": \"object\",\r\n                            \"responseModel\": \"string\"\r\n                        }\r\n                    ],\r\n                    \"produces\": [\r\n                        \"application/json\"\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}`,}\r\n\r\n```\r\n\r\npls help! \r\nThanks "}}
{"actor":{"display_login":"congtranminh"}}