{"action":"created","issue":{"url":"https://api.github.com/repos/apiaryio/fury.js/issues/16","labels_url":"https://api.github.com/repos/apiaryio/fury.js/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/fury.js/issues/16/comments","events_url":"https://api.github.com/repos/apiaryio/fury.js/issues/16/events","html_url":"https://github.com/apiaryio/fury.js/pull/16","id":73122052,"number":16,"title":"Initial work on a refract parser and new SDK API","user":{"login":"danielgtaylor","id":106826,"avatar_url":"https://avatars.githubusercontent.com/u/106826?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgtaylor","html_url":"https://github.com/danielgtaylor","followers_url":"https://api.github.com/users/danielgtaylor/followers","following_url":"https://api.github.com/users/danielgtaylor/following{/other_user}","gists_url":"https://api.github.com/users/danielgtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgtaylor/subscriptions","organizations_url":"https://api.github.com/users/danielgtaylor/orgs","repos_url":"https://api.github.com/users/danielgtaylor/repos","events_url":"https://api.github.com/users/danielgtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/danielgtaylor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apiaryio/fury.js/labels/do%20not%20merge","name":"do not merge","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-04T20:34:56Z","updated_at":"2015-05-17T20:05:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apiaryio/fury.js/pulls/16","html_url":"https://github.com/apiaryio/fury.js/pull/16","diff_url":"https://github.com/apiaryio/fury.js/pull/16.diff","patch_url":"https://github.com/apiaryio/fury.js/pull/16.patch"},"body":"This is an attempt to create a [refract](https://github.com/refractproject/refract-spec)-based new SDK interface. It looks something like this at the moment:\r\n\r\n```js\r\nimport fury from 'fury';\r\n\r\nlet api = fury.load(elements);\r\n\r\n// Example output\r\n// --------------\r\n// Group Questions\r\n// Resources related to questions in the API.\r\n// Resource Question /questions/{id}\r\n// Transition View a Questions Detail\r\n// Transaction undefined\r\n// Response 200 { ... some JSON body ... }\r\n\r\nfor (let group of api.resourceGroups) {\r\n  console.log(`Group ${group.title}`);\r\n  console.log(group.description);\r\n\r\n  for (let resource of group.resources) {\r\n    console.log(`Resource ${resource.title} ${resource.href}`);\r\n\r\n    for (let transition of resource.transitions) {\r\n      console.log(`Transition ${transition.title}`);\r\n\r\n      for (let transaction of transition.transactions) {\r\n        let response = transaction.response;\r\n        console.log(`Transaction ${transaction.title}`);\r\n        console.log(`Response ${response.statusCode} ${response.messageBody}`);\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAlso included are some updates to use ES6 alongside the existing ES5 and Coffeescript, as well as adding a linter and fixing a few lint issues in the existing code (like trailing spaces or missing semicolons)."},"comment":{"url":"https://api.github.com/repos/apiaryio/fury.js/issues/comments/102844972","html_url":"https://github.com/apiaryio/fury.js/pull/16#issuecomment-102844972","issue_url":"https://api.github.com/repos/apiaryio/fury.js/issues/16","id":102844972,"user":{"login":"smizell","id":130959,"avatar_url":"https://avatars.githubusercontent.com/u/130959?v=3","gravatar_id":"","url":"https://api.github.com/users/smizell","html_url":"https://github.com/smizell","followers_url":"https://api.github.com/users/smizell/followers","following_url":"https://api.github.com/users/smizell/following{/other_user}","gists_url":"https://api.github.com/users/smizell/gists{/gist_id}","starred_url":"https://api.github.com/users/smizell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smizell/subscriptions","organizations_url":"https://api.github.com/users/smizell/orgs","repos_url":"https://api.github.com/users/smizell/repos","events_url":"https://api.github.com/users/smizell/events{/privacy}","received_events_url":"https://api.github.com/users/smizell/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T20:05:09Z","updated_at":"2015-05-17T20:05:09Z","body":"@danielgtaylor I've merged https://github.com/refractproject/minim/pull/23. "}}