{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/Numergy/openvsd/pulls/8","id":54273552,"html_url":"https://github.com/Numergy/openvsd/pull/8","diff_url":"https://github.com/Numergy/openvsd/pull/8.diff","patch_url":"https://github.com/Numergy/openvsd/pull/8.patch","issue_url":"https://api.github.com/repos/Numergy/openvsd/issues/8","number":8,"state":"open","locked":false,"title":"Add free-api command","user":{"login":"maxiterr","id":8830003,"avatar_url":"https://avatars.githubusercontent.com/u/8830003?v=3","gravatar_id":"","url":"https://api.github.com/users/maxiterr","html_url":"https://github.com/maxiterr","followers_url":"https://api.github.com/users/maxiterr/followers","following_url":"https://api.github.com/users/maxiterr/following{/other_user}","gists_url":"https://api.github.com/users/maxiterr/gists{/gist_id}","starred_url":"https://api.github.com/users/maxiterr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxiterr/subscriptions","organizations_url":"https://api.github.com/users/maxiterr/orgs","repos_url":"https://api.github.com/users/maxiterr/repos","events_url":"https://api.github.com/users/maxiterr/events{/privacy}","received_events_url":"https://api.github.com/users/maxiterr/received_events","type":"User","site_admin":false},"body":"Allow user to create arbitrary API call\r\nIncluding url, body and headers\r\n\r\n```\r\n# vsd free-api --help\r\nUsage: vsd free-api [OPTIONS] <ressource>\r\n\r\n  build your own API call (with headers and data)\r\n\r\nOptions:\r\n  --verb [PUT|GET|POST|DELETE]  Default : GET\r\n  --header <name:value>         Add header to the request. Can be repeated.\r\n  --key-value <key:value>       Specify body in key/value pair. Can be\r\n                                repeated. Incompatible with --body.\r\n  --body <data json>            Specify body of the request in json format.\r\n                                Incompatible with --key-value.\r\n  --help                        Show this message and exit.\r\n```\r\n\r\nExample:\r\n```\r\n# vsd free-api enterprises --verb GET\r\n[\r\n    {\r\n        \"allowedForwardingClasses\": [\r\n            \"H\"\r\n        ], \r\n        \"allowGatewayManagement\": false, \r\n        \"name\": \"nulab\", \r\n        \"allowAdvancedQOSConfiguration\": false, \r\n        \"avatarData\": null, \r\n        \"floatingIPsQuota\": 16, \r\n        \"owner\": \"f1b0850b-75c7-4a0d-a111-9f911ecb289b\", \r\n        \"ID\": \"a896a2f1-6ee3-40cf-ad34-d44e584dd3cd\", \r\n        \"avatarType\": null, \r\n        \"parentType\": null, \r\n        \"lastUpdatedBy\": \"8a6f0e20-a4db-4878-ad84-9cc61756cd5e\", \r\n        \"externalID\": null, \r\n        \"lastUpdatedDate\": 1450714118000, \r\n        \"parentID\": null, \r\n        \"allowTrustedForwardingClass\": false, \r\n        \"enterpriseProfileID\": \"f1e5eb19-c67a-4651-90c1-3f84e23e1d36\", \r\n        \"customerID\": 10004, \r\n        \"creationDate\": 1447796769000, \r\n        \"floatingIPsUsed\": 0, \r\n        \"children\": null, \r\n        \"description\": \"ttiti\"\r\n    }\r\n]\r\n```\r\nAnd\r\n```\r\n# vsd free-api enterprises/a896a2f1-6ee3-40cf-ad34-d44e584dd3cd --verb PUT --key-value description:toto\r\n[]\r\n```\r\nor\r\n```\r\n# vsd free-api enterprises/a896a2f1-6ee3-40cf-ad34-d44e584dd3cd --verb PUT --body '{\"description\": \"t\"}'\r\n[]\r\n```","created_at":"2015-12-21T16:13:54Z","updated_at":"2015-12-21T16:13:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Numergy/openvsd/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Numergy/openvsd/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Numergy/openvsd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Numergy/openvsd/issues/8/comments","statuses_url":"https://api.github.com/repos/Numergy/openvsd/statuses/2f4a32c56e412d96af76811b8439b40281c4087c","head":{"label":"Numergy:free_api","ref":"free_api","sha":"2f4a32c56e412d96af76811b8439b40281c4087c","user":{"login":"Numergy","id":3084264,"avatar_url":"https://avatars.githubusercontent.com/u/3084264?v=3","gravatar_id":"","url":"https://api.github.com/users/Numergy","html_url":"https://github.com/Numergy","followers_url":"https://api.github.com/users/Numergy/followers","following_url":"https://api.github.com/users/Numergy/following{/other_user}","gists_url":"https://api.github.com/users/Numergy/gists{/gist_id}","starred_url":"https://api.github.com/users/Numergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Numergy/subscriptions","organizations_url":"https://api.github.com/users/Numergy/orgs","repos_url":"https://api.github.com/users/Numergy/repos","events_url":"https://api.github.com/users/Numergy/events{/privacy}","received_events_url":"https://api.github.com/users/Numergy/received_events","type":"Organization","site_admin":false},"repo":{"id":44318083,"name":"openvsd","full_name":"Numergy/openvsd","owner":{"login":"Numergy","id":3084264,"avatar_url":"https://avatars.githubusercontent.com/u/3084264?v=3","gravatar_id":"","url":"https://api.github.com/users/Numergy","html_url":"https://github.com/Numergy","followers_url":"https://api.github.com/users/Numergy/followers","following_url":"https://api.github.com/users/Numergy/following{/other_user}","gists_url":"https://api.github.com/users/Numergy/gists{/gist_id}","starred_url":"https://api.github.com/users/Numergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Numergy/subscriptions","organizations_url":"https://api.github.com/users/Numergy/orgs","repos_url":"https://api.github.com/users/Numergy/repos","events_url":"https://api.github.com/users/Numergy/events{/privacy}","received_events_url":"https://api.github.com/users/Numergy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Numergy/openvsd","description":"An open source CLI for Nuage SDN","fork":false,"url":"https://api.github.com/repos/Numergy/openvsd","forks_url":"https://api.github.com/repos/Numergy/openvsd/forks","keys_url":"https://api.github.com/repos/Numergy/openvsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Numergy/openvsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Numergy/openvsd/teams","hooks_url":"https://api.github.com/repos/Numergy/openvsd/hooks","issue_events_url":"https://api.github.com/repos/Numergy/openvsd/issues/events{/number}","events_url":"https://api.github.com/repos/Numergy/openvsd/events","assignees_url":"https://api.github.com/repos/Numergy/openvsd/assignees{/user}","branches_url":"https://api.github.com/repos/Numergy/openvsd/branches{/branch}","tags_url":"https://api.github.com/repos/Numergy/openvsd/tags","blobs_url":"https://api.github.com/repos/Numergy/openvsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Numergy/openvsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Numergy/openvsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/Numergy/openvsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Numergy/openvsd/statuses/{sha}","languages_url":"https://api.github.com/repos/Numergy/openvsd/languages","stargazers_url":"https://api.github.com/repos/Numergy/openvsd/stargazers","contributors_url":"https://api.github.com/repos/Numergy/openvsd/contributors","subscribers_url":"https://api.github.com/repos/Numergy/openvsd/subscribers","subscription_url":"https://api.github.com/repos/Numergy/openvsd/subscription","commits_url":"https://api.github.com/repos/Numergy/openvsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/Numergy/openvsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/Numergy/openvsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/Numergy/openvsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/Numergy/openvsd/contents/{+path}","compare_url":"https://api.github.com/repos/Numergy/openvsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Numergy/openvsd/merges","archive_url":"https://api.github.com/repos/Numergy/openvsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Numergy/openvsd/downloads","issues_url":"https://api.github.com/repos/Numergy/openvsd/issues{/number}","pulls_url":"https://api.github.com/repos/Numergy/openvsd/pulls{/number}","milestones_url":"https://api.github.com/repos/Numergy/openvsd/milestones{/number}","notifications_url":"https://api.github.com/repos/Numergy/openvsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Numergy/openvsd/labels{/name}","releases_url":"https://api.github.com/repos/Numergy/openvsd/releases{/id}","created_at":"2015-10-15T13:07:45Z","updated_at":"2015-12-06T08:58:58Z","pushed_at":"2015-12-21T16:11:44Z","git_url":"git://github.com/Numergy/openvsd.git","ssh_url":"git@github.com:Numergy/openvsd.git","clone_url":"https://github.com/Numergy/openvsd.git","svn_url":"https://github.com/Numergy/openvsd","homepage":"","size":78,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":6,"default_branch":"master"}},"base":{"label":"Numergy:master","ref":"master","sha":"407262d5cc84fb9ecc71a3f9e8f7b59b62301b1b","user":{"login":"Numergy","id":3084264,"avatar_url":"https://avatars.githubusercontent.com/u/3084264?v=3","gravatar_id":"","url":"https://api.github.com/users/Numergy","html_url":"https://github.com/Numergy","followers_url":"https://api.github.com/users/Numergy/followers","following_url":"https://api.github.com/users/Numergy/following{/other_user}","gists_url":"https://api.github.com/users/Numergy/gists{/gist_id}","starred_url":"https://api.github.com/users/Numergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Numergy/subscriptions","organizations_url":"https://api.github.com/users/Numergy/orgs","repos_url":"https://api.github.com/users/Numergy/repos","events_url":"https://api.github.com/users/Numergy/events{/privacy}","received_events_url":"https://api.github.com/users/Numergy/received_events","type":"Organization","site_admin":false},"repo":{"id":44318083,"name":"openvsd","full_name":"Numergy/openvsd","owner":{"login":"Numergy","id":3084264,"avatar_url":"https://avatars.githubusercontent.com/u/3084264?v=3","gravatar_id":"","url":"https://api.github.com/users/Numergy","html_url":"https://github.com/Numergy","followers_url":"https://api.github.com/users/Numergy/followers","following_url":"https://api.github.com/users/Numergy/following{/other_user}","gists_url":"https://api.github.com/users/Numergy/gists{/gist_id}","starred_url":"https://api.github.com/users/Numergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Numergy/subscriptions","organizations_url":"https://api.github.com/users/Numergy/orgs","repos_url":"https://api.github.com/users/Numergy/repos","events_url":"https://api.github.com/users/Numergy/events{/privacy}","received_events_url":"https://api.github.com/users/Numergy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Numergy/openvsd","description":"An open source CLI for Nuage SDN","fork":false,"url":"https://api.github.com/repos/Numergy/openvsd","forks_url":"https://api.github.com/repos/Numergy/openvsd/forks","keys_url":"https://api.github.com/repos/Numergy/openvsd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Numergy/openvsd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Numergy/openvsd/teams","hooks_url":"https://api.github.com/repos/Numergy/openvsd/hooks","issue_events_url":"https://api.github.com/repos/Numergy/openvsd/issues/events{/number}","events_url":"https://api.github.com/repos/Numergy/openvsd/events","assignees_url":"https://api.github.com/repos/Numergy/openvsd/assignees{/user}","branches_url":"https://api.github.com/repos/Numergy/openvsd/branches{/branch}","tags_url":"https://api.github.com/repos/Numergy/openvsd/tags","blobs_url":"https://api.github.com/repos/Numergy/openvsd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Numergy/openvsd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Numergy/openvsd/git/refs{/sha}","trees_url":"https://api.github.com/repos/Numergy/openvsd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Numergy/openvsd/statuses/{sha}","languages_url":"https://api.github.com/repos/Numergy/openvsd/languages","stargazers_url":"https://api.github.com/repos/Numergy/openvsd/stargazers","contributors_url":"https://api.github.com/repos/Numergy/openvsd/contributors","subscribers_url":"https://api.github.com/repos/Numergy/openvsd/subscribers","subscription_url":"https://api.github.com/repos/Numergy/openvsd/subscription","commits_url":"https://api.github.com/repos/Numergy/openvsd/commits{/sha}","git_commits_url":"https://api.github.com/repos/Numergy/openvsd/git/commits{/sha}","comments_url":"https://api.github.com/repos/Numergy/openvsd/comments{/number}","issue_comment_url":"https://api.github.com/repos/Numergy/openvsd/issues/comments{/number}","contents_url":"https://api.github.com/repos/Numergy/openvsd/contents/{+path}","compare_url":"https://api.github.com/repos/Numergy/openvsd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Numergy/openvsd/merges","archive_url":"https://api.github.com/repos/Numergy/openvsd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Numergy/openvsd/downloads","issues_url":"https://api.github.com/repos/Numergy/openvsd/issues{/number}","pulls_url":"https://api.github.com/repos/Numergy/openvsd/pulls{/number}","milestones_url":"https://api.github.com/repos/Numergy/openvsd/milestones{/number}","notifications_url":"https://api.github.com/repos/Numergy/openvsd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Numergy/openvsd/labels{/name}","releases_url":"https://api.github.com/repos/Numergy/openvsd/releases{/id}","created_at":"2015-10-15T13:07:45Z","updated_at":"2015-12-06T08:58:58Z","pushed_at":"2015-12-21T16:11:44Z","git_url":"git://github.com/Numergy/openvsd.git","ssh_url":"git@github.com:Numergy/openvsd.git","clone_url":"https://github.com/Numergy/openvsd.git","svn_url":"https://github.com/Numergy/openvsd","homepage":"","size":78,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Numergy/openvsd/pulls/8"},"html":{"href":"https://github.com/Numergy/openvsd/pull/8"},"issue":{"href":"https://api.github.com/repos/Numergy/openvsd/issues/8"},"comments":{"href":"https://api.github.com/repos/Numergy/openvsd/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Numergy/openvsd/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Numergy/openvsd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Numergy/openvsd/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Numergy/openvsd/statuses/2f4a32c56e412d96af76811b8439b40281c4087c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":0,"changed_files":1}}