{"action":"opened","number":507,"pull_request":{"url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/507","id":81747857,"html_url":"https://github.com/zaproxy/zap-extensions/pull/507","diff_url":"https://github.com/zaproxy/zap-extensions/pull/507.diff","patch_url":"https://github.com/zaproxy/zap-extensions/pull/507.patch","issue_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/507","number":507,"state":"open","locked":false,"title":"Add URL Import API","user":{"login":"kingthorin","id":7570458,"avatar_url":"https://avatars.githubusercontent.com/u/7570458?v=3","gravatar_id":"","url":"https://api.github.com/users/kingthorin","html_url":"https://github.com/kingthorin","followers_url":"https://api.github.com/users/kingthorin/followers","following_url":"https://api.github.com/users/kingthorin/following{/other_user}","gists_url":"https://api.github.com/users/kingthorin/gists{/gist_id}","starred_url":"https://api.github.com/users/kingthorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingthorin/subscriptions","organizations_url":"https://api.github.com/users/kingthorin/orgs","repos_url":"https://api.github.com/users/kingthorin/repos","events_url":"https://api.github.com/users/kingthorin/events{/privacy}","received_events_url":"https://api.github.com/users/kingthorin/received_events","type":"User","site_admin":false},"body":"Add ImportUrlsAPI which accepts a simple parameter filePath. Expecting a\r\nZAP URL export or plain text file containing a single URL per line.\r\n\r\nAdjust ExtensionImportUrls:\r\n- hook, now includes registration of the API implementor.\r\n- importUrlFile, modified slightly. It had been assuming that the method\r\non every line of ZAP URL exports was GET. Now instead of assuming ZAP\r\nformatted exports start with GET it checks if the line starts with http.\r\nIf not it assumes everything up to the first tab is the method.\r\n\r\nNote: The import function still assumes that all URLs are accessible via \r\nGET. This should largely be true, and it is doubtful that we would find\r\nmuch benefit in trying the original (exported) method, because for\r\nexample on a POST we wouldn't have the necessary parameters (same for a\r\nPUT, or some sort of webdav method).\r\n\r\nFixes zaproxy/zaproxy#1643","created_at":"2016-08-18T02:28:11Z","updated_at":"2016-08-18T02:28:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/507/commits","review_comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/507/comments","review_comment_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/507/comments","statuses_url":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/33bbecef9b6d131fe06e7e22677421d5f1f5e6db","head":{"label":"kingthorin:issue-1643-api-url-import","ref":"issue-1643-api-url-import","sha":"33bbecef9b6d131fe06e7e22677421d5f1f5e6db","user":{"login":"kingthorin","id":7570458,"avatar_url":"https://avatars.githubusercontent.com/u/7570458?v=3","gravatar_id":"","url":"https://api.github.com/users/kingthorin","html_url":"https://github.com/kingthorin","followers_url":"https://api.github.com/users/kingthorin/followers","following_url":"https://api.github.com/users/kingthorin/following{/other_user}","gists_url":"https://api.github.com/users/kingthorin/gists{/gist_id}","starred_url":"https://api.github.com/users/kingthorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingthorin/subscriptions","organizations_url":"https://api.github.com/users/kingthorin/orgs","repos_url":"https://api.github.com/users/kingthorin/repos","events_url":"https://api.github.com/users/kingthorin/events{/privacy}","received_events_url":"https://api.github.com/users/kingthorin/received_events","type":"User","site_admin":false},"repo":{"id":39949063,"name":"zap-extensions","full_name":"kingthorin/zap-extensions","owner":{"login":"kingthorin","id":7570458,"avatar_url":"https://avatars.githubusercontent.com/u/7570458?v=3","gravatar_id":"","url":"https://api.github.com/users/kingthorin","html_url":"https://github.com/kingthorin","followers_url":"https://api.github.com/users/kingthorin/followers","following_url":"https://api.github.com/users/kingthorin/following{/other_user}","gists_url":"https://api.github.com/users/kingthorin/gists{/gist_id}","starred_url":"https://api.github.com/users/kingthorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingthorin/subscriptions","organizations_url":"https://api.github.com/users/kingthorin/orgs","repos_url":"https://api.github.com/users/kingthorin/repos","events_url":"https://api.github.com/users/kingthorin/events{/privacy}","received_events_url":"https://api.github.com/users/kingthorin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kingthorin/zap-extensions","description":"OWASP ZAP Add-ons","fork":true,"url":"https://api.github.com/repos/kingthorin/zap-extensions","forks_url":"https://api.github.com/repos/kingthorin/zap-extensions/forks","keys_url":"https://api.github.com/repos/kingthorin/zap-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kingthorin/zap-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kingthorin/zap-extensions/teams","hooks_url":"https://api.github.com/repos/kingthorin/zap-extensions/hooks","issue_events_url":"https://api.github.com/repos/kingthorin/zap-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/kingthorin/zap-extensions/events","assignees_url":"https://api.github.com/repos/kingthorin/zap-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/kingthorin/zap-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/kingthorin/zap-extensions/tags","blobs_url":"https://api.github.com/repos/kingthorin/zap-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kingthorin/zap-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kingthorin/zap-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/kingthorin/zap-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kingthorin/zap-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/kingthorin/zap-extensions/languages","stargazers_url":"https://api.github.com/repos/kingthorin/zap-extensions/stargazers","contributors_url":"https://api.github.com/repos/kingthorin/zap-extensions/contributors","subscribers_url":"https://api.github.com/repos/kingthorin/zap-extensions/subscribers","subscription_url":"https://api.github.com/repos/kingthorin/zap-extensions/subscription","commits_url":"https://api.github.com/repos/kingthorin/zap-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/kingthorin/zap-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/kingthorin/zap-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/kingthorin/zap-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/kingthorin/zap-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/kingthorin/zap-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kingthorin/zap-extensions/merges","archive_url":"https://api.github.com/repos/kingthorin/zap-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kingthorin/zap-extensions/downloads","issues_url":"https://api.github.com/repos/kingthorin/zap-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/kingthorin/zap-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/kingthorin/zap-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/kingthorin/zap-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kingthorin/zap-extensions/labels{/name}","releases_url":"https://api.github.com/repos/kingthorin/zap-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/kingthorin/zap-extensions/deployments","created_at":"2015-07-30T12:21:23Z","updated_at":"2016-01-11T13:07:02Z","pushed_at":"2016-08-18T02:25:36Z","git_url":"git://github.com/kingthorin/zap-extensions.git","ssh_url":"git@github.com:kingthorin/zap-extensions.git","clone_url":"https://github.com/kingthorin/zap-extensions.git","svn_url":"https://github.com/kingthorin/zap-extensions","homepage":"","size":685713,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zaproxy:beta","ref":"beta","sha":"8cf344c47b2e2e8f7d9bcb4e32295e8a76f91e4f","user":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"repo":{"id":35210580,"name":"zap-extensions","full_name":"zaproxy/zap-extensions","owner":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zaproxy/zap-extensions","description":"OWASP ZAP Add-ons","fork":false,"url":"https://api.github.com/repos/zaproxy/zap-extensions","forks_url":"https://api.github.com/repos/zaproxy/zap-extensions/forks","keys_url":"https://api.github.com/repos/zaproxy/zap-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zaproxy/zap-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zaproxy/zap-extensions/teams","hooks_url":"https://api.github.com/repos/zaproxy/zap-extensions/hooks","issue_events_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/zaproxy/zap-extensions/events","assignees_url":"https://api.github.com/repos/zaproxy/zap-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/zaproxy/zap-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/zaproxy/zap-extensions/tags","blobs_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/zaproxy/zap-extensions/languages","stargazers_url":"https://api.github.com/repos/zaproxy/zap-extensions/stargazers","contributors_url":"https://api.github.com/repos/zaproxy/zap-extensions/contributors","subscribers_url":"https://api.github.com/repos/zaproxy/zap-extensions/subscribers","subscription_url":"https://api.github.com/repos/zaproxy/zap-extensions/subscription","commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/zaproxy/zap-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/zaproxy/zap-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zaproxy/zap-extensions/merges","archive_url":"https://api.github.com/repos/zaproxy/zap-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zaproxy/zap-extensions/downloads","issues_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/zaproxy/zap-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/zaproxy/zap-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zaproxy/zap-extensions/labels{/name}","releases_url":"https://api.github.com/repos/zaproxy/zap-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/zaproxy/zap-extensions/deployments","created_at":"2015-05-07T09:17:13Z","updated_at":"2016-08-07T02:52:11Z","pushed_at":"2016-08-18T02:28:11Z","git_url":"git://github.com/zaproxy/zap-extensions.git","ssh_url":"git@github.com:zaproxy/zap-extensions.git","clone_url":"https://github.com/zaproxy/zap-extensions.git","svn_url":"https://github.com/zaproxy/zap-extensions","homepage":"","size":711291,"stargazers_count":86,"watchers_count":86,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":17,"forks":100,"open_issues":17,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/507"},"html":{"href":"https://github.com/zaproxy/zap-extensions/pull/507"},"issue":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/507"},"comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/507/comments"},"review_comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/507/comments"},"review_comment":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/507/commits"},"statuses":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/33bbecef9b6d131fe06e7e22677421d5f1f5e6db"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":89,"deletions":6,"changed_files":3}}
{"actor":{"display_login":"kingthorin"}}