{"action":"created","issue":{"url":"https://api.github.com/repos/dreamfactorysoftware/dreamfactory/issues/96","repository_url":"https://api.github.com/repos/dreamfactorysoftware/dreamfactory","labels_url":"https://api.github.com/repos/dreamfactorysoftware/dreamfactory/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/dreamfactorysoftware/dreamfactory/issues/96/comments","events_url":"https://api.github.com/repos/dreamfactorysoftware/dreamfactory/issues/96/events","html_url":"https://github.com/dreamfactorysoftware/dreamfactory/issues/96","id":165787693,"number":96,"title":"DF 2.2 /2.2.1: API Docs broken for Custom Services","user":{"login":"philicious","id":404412,"avatar_url":"https://avatars.githubusercontent.com/u/404412?v=3","gravatar_id":"","url":"https://api.github.com/users/philicious","html_url":"https://github.com/philicious","followers_url":"https://api.github.com/users/philicious/followers","following_url":"https://api.github.com/users/philicious/following{/other_user}","gists_url":"https://api.github.com/users/philicious/gists{/gist_id}","starred_url":"https://api.github.com/users/philicious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philicious/subscriptions","organizations_url":"https://api.github.com/users/philicious/orgs","repos_url":"https://api.github.com/users/philicious/repos","events_url":"https://api.github.com/users/philicious/events{/privacy}","received_events_url":"https://api.github.com/users/philicious/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T13:33:23Z","updated_at":"2016-07-15T13:38:29Z","closed_at":null,"body":"Since 2.2 the API Docs do prepend the swagger-based APIs with the services name, thus breaking them entirely in API Docs.\r\n\r\ne.g. swagger\r\n```\r\npaths:\r\n  /consumers:\r\n    get:\r\n....\r\n```\r\nservice is also named `consumers` and DF now shows in API Docs `\r\nGET /consumers/consumers ` instead of only `\r\nGET /consumers` as it used to be. The same pattern applies for ALL endpoints !!\r\n\r\nTherefore all curl requests are broken\r\n```\r\nRequest URL\r\nhttp://dreamfactory.app/api/v2/consumers/consumers\r\n\r\nResult\r\n    \"message\": \"Invalid or missing resource name.\",\r\n```\r\n\r\nfortuantely API itself is still working. However the broken API Docs is a major problem !\r\n"},"comment":{"url":"https://api.github.com/repos/dreamfactorysoftware/dreamfactory/issues/comments/232952829","html_url":"https://github.com/dreamfactorysoftware/dreamfactory/issues/96#issuecomment-232952829","issue_url":"https://api.github.com/repos/dreamfactorysoftware/dreamfactory/issues/96","id":232952829,"user":{"login":"leehicks","id":3423483,"avatar_url":"https://avatars.githubusercontent.com/u/3423483?v=3","gravatar_id":"","url":"https://api.github.com/users/leehicks","html_url":"https://github.com/leehicks","followers_url":"https://api.github.com/users/leehicks/followers","following_url":"https://api.github.com/users/leehicks/following{/other_user}","gists_url":"https://api.github.com/users/leehicks/gists{/gist_id}","starred_url":"https://api.github.com/users/leehicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leehicks/subscriptions","organizations_url":"https://api.github.com/users/leehicks/orgs","repos_url":"https://api.github.com/users/leehicks/repos","events_url":"https://api.github.com/users/leehicks/events{/privacy}","received_events_url":"https://api.github.com/users/leehicks/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T13:38:29Z","updated_at":"2016-07-15T13:38:29Z","body":"Was this doc handwritten or imported from somewhere? Could you give me a list of just the paths? The 2.2 release now assumes the doc is from the point of a \"service\" view and attaches the service name to the beginning, BUT it is supposed to detect prior formats and not prepend if all paths already started with the service name. "}}
{"actor":{"display_login":"leehicks"}}