{"action":"opened","number":104,"pull_request":{"url":"https://api.github.com/repos/defpoint/threat_note/pulls/104","id":56715657,"html_url":"https://github.com/defpoint/threat_note/pull/104","diff_url":"https://github.com/defpoint/threat_note/pull/104.diff","patch_url":"https://github.com/defpoint/threat_note/pull/104.patch","issue_url":"https://api.github.com/repos/defpoint/threat_note/issues/104","number":104,"state":"open","locked":false,"title":"[WIP] API v2","user":{"login":"sroberts","id":44774,"avatar_url":"https://avatars.githubusercontent.com/u/44774?v=3","gravatar_id":"","url":"https://api.github.com/users/sroberts","html_url":"https://github.com/sroberts","followers_url":"https://api.github.com/users/sroberts/followers","following_url":"https://api.github.com/users/sroberts/following{/other_user}","gists_url":"https://api.github.com/users/sroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/sroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sroberts/subscriptions","organizations_url":"https://api.github.com/users/sroberts/orgs","repos_url":"https://api.github.com/users/sroberts/repos","events_url":"https://api.github.com/users/sroberts/events{/privacy}","received_events_url":"https://api.github.com/users/sroberts/received_events","type":"User","site_admin":true},"body":":warning: :rotating_light: _DO NOT MERGE: Work in Progress_ :rotating_light: :warning: \r\n\r\nSo still in progress but I wanted to get this out there, get people seeing it, get opinions, etc.\r\n\r\nI've wanted a more comprehensive API ever since I first saw Threat Note. I finally started working on it and wanted to share it as soon as possible. The most confusing thing was using [Flask-Restful](http://flask-restful.readthedocs.org/en/0.3.4/quickstart.html#a-minimal-api), a standard library for building REST APIs in Flask. It seemed a bit odd at first, but if you spend some time with it you'll see it makes a lot of sense.\r\n\r\n## Todos\r\n\r\n- [ ]  Finish `/GET` & `/POST` endpoints\r\n- [ ] Add [key based authentication](http://blog.miguelgrinberg.com/post/restful-authentication-with-flask)\r\n- [ ] Add error for null results (right now it hangs hard if there's no indicator)\r\n- [ ] Build Maltego Transforms\r\n- [ ] Deprecate v1 API\r\n\r\nI'm going to keep hacking on this, but I welcome early comments/thoughts. I'm especially curious about people's thoughts on deprecating the V1 API. I think it was great to get started, but I think once this covers the common API needs having a \"best way\" is a good thing.\r\n\r\n![I'm gonna fix it!](http://30.media.tumblr.com/ae20a838fdb09df1413459be5a4d142d/tumblr_mhmkj3zl7q1rkt7lno2_500.gif)\r\n\r\nFixes: #79 ","created_at":"2016-01-21T07:55:58Z","updated_at":"2016-01-21T07:55:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/defpoint/threat_note/pulls/104/commits","review_comments_url":"https://api.github.com/repos/defpoint/threat_note/pulls/104/comments","review_comment_url":"https://api.github.com/repos/defpoint/threat_note/pulls/comments{/number}","comments_url":"https://api.github.com/repos/defpoint/threat_note/issues/104/comments","statuses_url":"https://api.github.com/repos/defpoint/threat_note/statuses/afaf488ee4b47922eb13081a1f761a9cb2608843","head":{"label":"sroberts:apiv2","ref":"apiv2","sha":"afaf488ee4b47922eb13081a1f761a9cb2608843","user":{"login":"sroberts","id":44774,"avatar_url":"https://avatars.githubusercontent.com/u/44774?v=3","gravatar_id":"","url":"https://api.github.com/users/sroberts","html_url":"https://github.com/sroberts","followers_url":"https://api.github.com/users/sroberts/followers","following_url":"https://api.github.com/users/sroberts/following{/other_user}","gists_url":"https://api.github.com/users/sroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/sroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sroberts/subscriptions","organizations_url":"https://api.github.com/users/sroberts/orgs","repos_url":"https://api.github.com/users/sroberts/repos","events_url":"https://api.github.com/users/sroberts/events{/privacy}","received_events_url":"https://api.github.com/users/sroberts/received_events","type":"User","site_admin":true},"repo":{"id":46769803,"name":"threat_note","full_name":"sroberts/threat_note","owner":{"login":"sroberts","id":44774,"avatar_url":"https://avatars.githubusercontent.com/u/44774?v=3","gravatar_id":"","url":"https://api.github.com/users/sroberts","html_url":"https://github.com/sroberts","followers_url":"https://api.github.com/users/sroberts/followers","following_url":"https://api.github.com/users/sroberts/following{/other_user}","gists_url":"https://api.github.com/users/sroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/sroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sroberts/subscriptions","organizations_url":"https://api.github.com/users/sroberts/orgs","repos_url":"https://api.github.com/users/sroberts/repos","events_url":"https://api.github.com/users/sroberts/events{/privacy}","received_events_url":"https://api.github.com/users/sroberts/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/sroberts/threat_note","description":"DPS' Lightweight Investigation Notebook","fork":true,"url":"https://api.github.com/repos/sroberts/threat_note","forks_url":"https://api.github.com/repos/sroberts/threat_note/forks","keys_url":"https://api.github.com/repos/sroberts/threat_note/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sroberts/threat_note/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sroberts/threat_note/teams","hooks_url":"https://api.github.com/repos/sroberts/threat_note/hooks","issue_events_url":"https://api.github.com/repos/sroberts/threat_note/issues/events{/number}","events_url":"https://api.github.com/repos/sroberts/threat_note/events","assignees_url":"https://api.github.com/repos/sroberts/threat_note/assignees{/user}","branches_url":"https://api.github.com/repos/sroberts/threat_note/branches{/branch}","tags_url":"https://api.github.com/repos/sroberts/threat_note/tags","blobs_url":"https://api.github.com/repos/sroberts/threat_note/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sroberts/threat_note/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sroberts/threat_note/git/refs{/sha}","trees_url":"https://api.github.com/repos/sroberts/threat_note/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sroberts/threat_note/statuses/{sha}","languages_url":"https://api.github.com/repos/sroberts/threat_note/languages","stargazers_url":"https://api.github.com/repos/sroberts/threat_note/stargazers","contributors_url":"https://api.github.com/repos/sroberts/threat_note/contributors","subscribers_url":"https://api.github.com/repos/sroberts/threat_note/subscribers","subscription_url":"https://api.github.com/repos/sroberts/threat_note/subscription","commits_url":"https://api.github.com/repos/sroberts/threat_note/commits{/sha}","git_commits_url":"https://api.github.com/repos/sroberts/threat_note/git/commits{/sha}","comments_url":"https://api.github.com/repos/sroberts/threat_note/comments{/number}","issue_comment_url":"https://api.github.com/repos/sroberts/threat_note/issues/comments{/number}","contents_url":"https://api.github.com/repos/sroberts/threat_note/contents/{+path}","compare_url":"https://api.github.com/repos/sroberts/threat_note/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sroberts/threat_note/merges","archive_url":"https://api.github.com/repos/sroberts/threat_note/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sroberts/threat_note/downloads","issues_url":"https://api.github.com/repos/sroberts/threat_note/issues{/number}","pulls_url":"https://api.github.com/repos/sroberts/threat_note/pulls{/number}","milestones_url":"https://api.github.com/repos/sroberts/threat_note/milestones{/number}","notifications_url":"https://api.github.com/repos/sroberts/threat_note/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sroberts/threat_note/labels{/name}","releases_url":"https://api.github.com/repos/sroberts/threat_note/releases{/id}","created_at":"2015-11-24T05:45:43Z","updated_at":"2016-01-15T14:39:52Z","pushed_at":"2016-01-21T07:43:40Z","git_url":"git://github.com/sroberts/threat_note.git","ssh_url":"git@github.com:sroberts/threat_note.git","clone_url":"https://github.com/sroberts/threat_note.git","svn_url":"https://github.com/sroberts/threat_note","homepage":null,"size":4968,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"defpoint:master","ref":"master","sha":"f4a913b12d255c699e83bb5095b1760c3c08491c","user":{"login":"defpoint","id":5631302,"avatar_url":"https://avatars.githubusercontent.com/u/5631302?v=3","gravatar_id":"","url":"https://api.github.com/users/defpoint","html_url":"https://github.com/defpoint","followers_url":"https://api.github.com/users/defpoint/followers","following_url":"https://api.github.com/users/defpoint/following{/other_user}","gists_url":"https://api.github.com/users/defpoint/gists{/gist_id}","starred_url":"https://api.github.com/users/defpoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defpoint/subscriptions","organizations_url":"https://api.github.com/users/defpoint/orgs","repos_url":"https://api.github.com/users/defpoint/repos","events_url":"https://api.github.com/users/defpoint/events{/privacy}","received_events_url":"https://api.github.com/users/defpoint/received_events","type":"User","site_admin":false},"repo":{"id":41309236,"name":"threat_note","full_name":"defpoint/threat_note","owner":{"login":"defpoint","id":5631302,"avatar_url":"https://avatars.githubusercontent.com/u/5631302?v=3","gravatar_id":"","url":"https://api.github.com/users/defpoint","html_url":"https://github.com/defpoint","followers_url":"https://api.github.com/users/defpoint/followers","following_url":"https://api.github.com/users/defpoint/following{/other_user}","gists_url":"https://api.github.com/users/defpoint/gists{/gist_id}","starred_url":"https://api.github.com/users/defpoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defpoint/subscriptions","organizations_url":"https://api.github.com/users/defpoint/orgs","repos_url":"https://api.github.com/users/defpoint/repos","events_url":"https://api.github.com/users/defpoint/events{/privacy}","received_events_url":"https://api.github.com/users/defpoint/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/defpoint/threat_note","description":"DPS' Lightweight Investigation Notebook","fork":false,"url":"https://api.github.com/repos/defpoint/threat_note","forks_url":"https://api.github.com/repos/defpoint/threat_note/forks","keys_url":"https://api.github.com/repos/defpoint/threat_note/keys{/key_id}","collaborators_url":"https://api.github.com/repos/defpoint/threat_note/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/defpoint/threat_note/teams","hooks_url":"https://api.github.com/repos/defpoint/threat_note/hooks","issue_events_url":"https://api.github.com/repos/defpoint/threat_note/issues/events{/number}","events_url":"https://api.github.com/repos/defpoint/threat_note/events","assignees_url":"https://api.github.com/repos/defpoint/threat_note/assignees{/user}","branches_url":"https://api.github.com/repos/defpoint/threat_note/branches{/branch}","tags_url":"https://api.github.com/repos/defpoint/threat_note/tags","blobs_url":"https://api.github.com/repos/defpoint/threat_note/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/defpoint/threat_note/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/defpoint/threat_note/git/refs{/sha}","trees_url":"https://api.github.com/repos/defpoint/threat_note/git/trees{/sha}","statuses_url":"https://api.github.com/repos/defpoint/threat_note/statuses/{sha}","languages_url":"https://api.github.com/repos/defpoint/threat_note/languages","stargazers_url":"https://api.github.com/repos/defpoint/threat_note/stargazers","contributors_url":"https://api.github.com/repos/defpoint/threat_note/contributors","subscribers_url":"https://api.github.com/repos/defpoint/threat_note/subscribers","subscription_url":"https://api.github.com/repos/defpoint/threat_note/subscription","commits_url":"https://api.github.com/repos/defpoint/threat_note/commits{/sha}","git_commits_url":"https://api.github.com/repos/defpoint/threat_note/git/commits{/sha}","comments_url":"https://api.github.com/repos/defpoint/threat_note/comments{/number}","issue_comment_url":"https://api.github.com/repos/defpoint/threat_note/issues/comments{/number}","contents_url":"https://api.github.com/repos/defpoint/threat_note/contents/{+path}","compare_url":"https://api.github.com/repos/defpoint/threat_note/compare/{base}...{head}","merges_url":"https://api.github.com/repos/defpoint/threat_note/merges","archive_url":"https://api.github.com/repos/defpoint/threat_note/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/defpoint/threat_note/downloads","issues_url":"https://api.github.com/repos/defpoint/threat_note/issues{/number}","pulls_url":"https://api.github.com/repos/defpoint/threat_note/pulls{/number}","milestones_url":"https://api.github.com/repos/defpoint/threat_note/milestones{/number}","notifications_url":"https://api.github.com/repos/defpoint/threat_note/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/defpoint/threat_note/labels{/name}","releases_url":"https://api.github.com/repos/defpoint/threat_note/releases{/id}","created_at":"2015-08-24T14:53:55Z","updated_at":"2016-01-19T22:23:34Z","pushed_at":"2016-01-20T15:03:48Z","git_url":"git://github.com/defpoint/threat_note.git","ssh_url":"git@github.com:defpoint/threat_note.git","clone_url":"https://github.com/defpoint/threat_note.git","svn_url":"https://github.com/defpoint/threat_note","homepage":null,"size":4979,"stargazers_count":99,"watchers_count":99,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":15,"forks":20,"open_issues":15,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/defpoint/threat_note/pulls/104"},"html":{"href":"https://github.com/defpoint/threat_note/pull/104"},"issue":{"href":"https://api.github.com/repos/defpoint/threat_note/issues/104"},"comments":{"href":"https://api.github.com/repos/defpoint/threat_note/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/defpoint/threat_note/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/defpoint/threat_note/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/defpoint/threat_note/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/defpoint/threat_note/statuses/afaf488ee4b47922eb13081a1f761a9cb2608843"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":181,"deletions":3,"changed_files":1}}