{"action":"created","comment":{"url":"https://api.github.com/repos/aseba-community/aseba/pulls/comments/77485942","id":77485942,"diff_hunk":"@@ -256,8 +257,23 @@ namespace Aseba\n \tvoid HttpDispatcher::registerHandler(const Handler& handler, const HttpMethod& method, const strings& uriPath)\n \t{\n \t\thandlers[method][uriPath] = handler;\n+\n+\t\tstd::stringstream opId;","path":"switches/http2/http/HttpDispatcher.cpp","position":15,"original_position":15,"commit_id":"f6f906a4bb21eef9306fdb7d60c2a3316253d8c0","original_commit_id":"f6f906a4bb21eef9306fdb7d60c2a3316253d8c0","user":{"login":"davidjsherman","id":9472510,"avatar_url":"https://avatars.githubusercontent.com/u/9472510?v=3","gravatar_id":"","url":"https://api.github.com/users/davidjsherman","html_url":"https://github.com/davidjsherman","followers_url":"https://api.github.com/users/davidjsherman/followers","following_url":"https://api.github.com/users/davidjsherman/following{/other_user}","gists_url":"https://api.github.com/users/davidjsherman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjsherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjsherman/subscriptions","organizations_url":"https://api.github.com/users/davidjsherman/orgs","repos_url":"https://api.github.com/users/davidjsherman/repos","events_url":"https://api.github.com/users/davidjsherman/events{/privacy}","received_events_url":"https://api.github.com/users/davidjsherman/received_events","type":"User","site_admin":false},"body":"It removes the braces from the path element in the URI Template. I admit it is ugly.\r\nFor example the default opId for GET /nodes/{node}/variables is `GET-nodes-node-variables`, the same as the one that would be generated by the Stoplight API designer.","created_at":"2016-09-05T08:28:43Z","updated_at":"2016-09-05T08:28:43Z","html_url":"https://github.com/aseba-community/aseba/pull/551#discussion_r77485942","pull_request_url":"https://api.github.com/repos/aseba-community/aseba/pulls/551","_links":{"self":{"href":"https://api.github.com/repos/aseba-community/aseba/pulls/comments/77485942"},"html":{"href":"https://github.com/aseba-community/aseba/pull/551#discussion_r77485942"},"pull_request":{"href":"https://api.github.com/repos/aseba-community/aseba/pulls/551"}}},"pull_request":{"url":"https://api.github.com/repos/aseba-community/aseba/pulls/551","id":83897456,"html_url":"https://github.com/aseba-community/aseba/pull/551","diff_url":"https://github.com/aseba-community/aseba/pull/551.diff","patch_url":"https://github.com/aseba-community/aseba/pull/551.patch","issue_url":"https://api.github.com/repos/aseba-community/aseba/issues/551","number":551,"state":"open","locked":false,"title":"register apidocs with each operation","user":{"login":"davidjsherman","id":9472510,"avatar_url":"https://avatars.githubusercontent.com/u/9472510?v=3","gravatar_id":"","url":"https://api.github.com/users/davidjsherman","html_url":"https://github.com/davidjsherman","followers_url":"https://api.github.com/users/davidjsherman/followers","following_url":"https://api.github.com/users/davidjsherman/following{/other_user}","gists_url":"https://api.github.com/users/davidjsherman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjsherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjsherman/subscriptions","organizations_url":"https://api.github.com/users/davidjsherman/orgs","repos_url":"https://api.github.com/users/davidjsherman/repos","events_url":"https://api.github.com/users/davidjsherman/events{/privacy}","received_events_url":"https://api.github.com/users/davidjsherman/received_events","type":"User","site_admin":false},"body":"The apidocs for each operation comprise at least seven fields, including a map that defines every response code the operation can produce. Since this information is contained the JSON-formatted OAS specification for the REST API, it is easiest to provide the apidocs in JSON format.\r\n\r\nThese fragments are easy to extract using `jq`; for example, POST /constants is\r\n```\r\njq -c '.paths.\"/constants\".post' aseba-v1.json\r\n```\r\n\r\nThis PR adds an `apidocs` map parallel to `handlers`, and a variant `registerHandler` that accepts apidocs. It also modifies `getApidocs` to provide global OAS information about the API.\r\n\r\n(TODO: include model definitions, for $ref schema references.)","created_at":"2016-09-03T14:50:20Z","updated_at":"2016-09-05T08:28:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11f7a16232c370fa8adbce7e18eb0ce470c685f1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aseba-community/aseba/pulls/551/commits","review_comments_url":"https://api.github.com/repos/aseba-community/aseba/pulls/551/comments","review_comment_url":"https://api.github.com/repos/aseba-community/aseba/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aseba-community/aseba/issues/551/comments","statuses_url":"https://api.github.com/repos/aseba-community/aseba/statuses/f6f906a4bb21eef9306fdb7d60c2a3316253d8c0","head":{"label":"davidjsherman:http-refactor","ref":"http-refactor","sha":"f6f906a4bb21eef9306fdb7d60c2a3316253d8c0","user":{"login":"davidjsherman","id":9472510,"avatar_url":"https://avatars.githubusercontent.com/u/9472510?v=3","gravatar_id":"","url":"https://api.github.com/users/davidjsherman","html_url":"https://github.com/davidjsherman","followers_url":"https://api.github.com/users/davidjsherman/followers","following_url":"https://api.github.com/users/davidjsherman/following{/other_user}","gists_url":"https://api.github.com/users/davidjsherman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjsherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjsherman/subscriptions","organizations_url":"https://api.github.com/users/davidjsherman/orgs","repos_url":"https://api.github.com/users/davidjsherman/repos","events_url":"https://api.github.com/users/davidjsherman/events{/privacy}","received_events_url":"https://api.github.com/users/davidjsherman/received_events","type":"User","site_admin":false},"repo":{"id":27434724,"name":"aseba","full_name":"davidjsherman/aseba","owner":{"login":"davidjsherman","id":9472510,"avatar_url":"https://avatars.githubusercontent.com/u/9472510?v=3","gravatar_id":"","url":"https://api.github.com/users/davidjsherman","html_url":"https://github.com/davidjsherman","followers_url":"https://api.github.com/users/davidjsherman/followers","following_url":"https://api.github.com/users/davidjsherman/following{/other_user}","gists_url":"https://api.github.com/users/davidjsherman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidjsherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidjsherman/subscriptions","organizations_url":"https://api.github.com/users/davidjsherman/orgs","repos_url":"https://api.github.com/users/davidjsherman/repos","events_url":"https://api.github.com/users/davidjsherman/events{/privacy}","received_events_url":"https://api.github.com/users/davidjsherman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidjsherman/aseba","description":"Aseba is a set of tools that allow beginners to program robots easily and efficiently.","fork":true,"url":"https://api.github.com/repos/davidjsherman/aseba","forks_url":"https://api.github.com/repos/davidjsherman/aseba/forks","keys_url":"https://api.github.com/repos/davidjsherman/aseba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidjsherman/aseba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidjsherman/aseba/teams","hooks_url":"https://api.github.com/repos/davidjsherman/aseba/hooks","issue_events_url":"https://api.github.com/repos/davidjsherman/aseba/issues/events{/number}","events_url":"https://api.github.com/repos/davidjsherman/aseba/events","assignees_url":"https://api.github.com/repos/davidjsherman/aseba/assignees{/user}","branches_url":"https://api.github.com/repos/davidjsherman/aseba/branches{/branch}","tags_url":"https://api.github.com/repos/davidjsherman/aseba/tags","blobs_url":"https://api.github.com/repos/davidjsherman/aseba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidjsherman/aseba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidjsherman/aseba/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidjsherman/aseba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidjsherman/aseba/statuses/{sha}","languages_url":"https://api.github.com/repos/davidjsherman/aseba/languages","stargazers_url":"https://api.github.com/repos/davidjsherman/aseba/stargazers","contributors_url":"https://api.github.com/repos/davidjsherman/aseba/contributors","subscribers_url":"https://api.github.com/repos/davidjsherman/aseba/subscribers","subscription_url":"https://api.github.com/repos/davidjsherman/aseba/subscription","commits_url":"https://api.github.com/repos/davidjsherman/aseba/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidjsherman/aseba/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidjsherman/aseba/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidjsherman/aseba/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidjsherman/aseba/contents/{+path}","compare_url":"https://api.github.com/repos/davidjsherman/aseba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidjsherman/aseba/merges","archive_url":"https://api.github.com/repos/davidjsherman/aseba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidjsherman/aseba/downloads","issues_url":"https://api.github.com/repos/davidjsherman/aseba/issues{/number}","pulls_url":"https://api.github.com/repos/davidjsherman/aseba/pulls{/number}","milestones_url":"https://api.github.com/repos/davidjsherman/aseba/milestones{/number}","notifications_url":"https://api.github.com/repos/davidjsherman/aseba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidjsherman/aseba/labels{/name}","releases_url":"https://api.github.com/repos/davidjsherman/aseba/releases{/id}","deployments_url":"https://api.github.com/repos/davidjsherman/aseba/deployments","created_at":"2014-12-02T13:56:28Z","updated_at":"2016-05-27T19:30:19Z","pushed_at":"2016-09-03T22:03:42Z","git_url":"git://github.com/davidjsherman/aseba.git","ssh_url":"git@github.com:davidjsherman/aseba.git","clone_url":"https://github.com/davidjsherman/aseba.git","svn_url":"https://github.com/davidjsherman/aseba","homepage":"http://aseba.wikidot.com","size":15352,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":21,"forks":1,"open_issues":21,"watchers":1,"default_branch":"master"}},"base":{"label":"aseba-community:http-refactor","ref":"http-refactor","sha":"4ee57fecd1adb5bd2a3cb5a7ad332c9b3e6f0251","user":{"login":"aseba-community","id":973992,"avatar_url":"https://avatars.githubusercontent.com/u/973992?v=3","gravatar_id":"","url":"https://api.github.com/users/aseba-community","html_url":"https://github.com/aseba-community","followers_url":"https://api.github.com/users/aseba-community/followers","following_url":"https://api.github.com/users/aseba-community/following{/other_user}","gists_url":"https://api.github.com/users/aseba-community/gists{/gist_id}","starred_url":"https://api.github.com/users/aseba-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseba-community/subscriptions","organizations_url":"https://api.github.com/users/aseba-community/orgs","repos_url":"https://api.github.com/users/aseba-community/repos","events_url":"https://api.github.com/users/aseba-community/events{/privacy}","received_events_url":"https://api.github.com/users/aseba-community/received_events","type":"Organization","site_admin":false},"repo":{"id":2191449,"name":"aseba","full_name":"aseba-community/aseba","owner":{"login":"aseba-community","id":973992,"avatar_url":"https://avatars.githubusercontent.com/u/973992?v=3","gravatar_id":"","url":"https://api.github.com/users/aseba-community","html_url":"https://github.com/aseba-community","followers_url":"https://api.github.com/users/aseba-community/followers","following_url":"https://api.github.com/users/aseba-community/following{/other_user}","gists_url":"https://api.github.com/users/aseba-community/gists{/gist_id}","starred_url":"https://api.github.com/users/aseba-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseba-community/subscriptions","organizations_url":"https://api.github.com/users/aseba-community/orgs","repos_url":"https://api.github.com/users/aseba-community/repos","events_url":"https://api.github.com/users/aseba-community/events{/privacy}","received_events_url":"https://api.github.com/users/aseba-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aseba-community/aseba","description":"Aseba is a set of tools which allow beginners to program robots easily and efficiently.","fork":false,"url":"https://api.github.com/repos/aseba-community/aseba","forks_url":"https://api.github.com/repos/aseba-community/aseba/forks","keys_url":"https://api.github.com/repos/aseba-community/aseba/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aseba-community/aseba/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aseba-community/aseba/teams","hooks_url":"https://api.github.com/repos/aseba-community/aseba/hooks","issue_events_url":"https://api.github.com/repos/aseba-community/aseba/issues/events{/number}","events_url":"https://api.github.com/repos/aseba-community/aseba/events","assignees_url":"https://api.github.com/repos/aseba-community/aseba/assignees{/user}","branches_url":"https://api.github.com/repos/aseba-community/aseba/branches{/branch}","tags_url":"https://api.github.com/repos/aseba-community/aseba/tags","blobs_url":"https://api.github.com/repos/aseba-community/aseba/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aseba-community/aseba/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aseba-community/aseba/git/refs{/sha}","trees_url":"https://api.github.com/repos/aseba-community/aseba/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aseba-community/aseba/statuses/{sha}","languages_url":"https://api.github.com/repos/aseba-community/aseba/languages","stargazers_url":"https://api.github.com/repos/aseba-community/aseba/stargazers","contributors_url":"https://api.github.com/repos/aseba-community/aseba/contributors","subscribers_url":"https://api.github.com/repos/aseba-community/aseba/subscribers","subscription_url":"https://api.github.com/repos/aseba-community/aseba/subscription","commits_url":"https://api.github.com/repos/aseba-community/aseba/commits{/sha}","git_commits_url":"https://api.github.com/repos/aseba-community/aseba/git/commits{/sha}","comments_url":"https://api.github.com/repos/aseba-community/aseba/comments{/number}","issue_comment_url":"https://api.github.com/repos/aseba-community/aseba/issues/comments{/number}","contents_url":"https://api.github.com/repos/aseba-community/aseba/contents/{+path}","compare_url":"https://api.github.com/repos/aseba-community/aseba/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aseba-community/aseba/merges","archive_url":"https://api.github.com/repos/aseba-community/aseba/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aseba-community/aseba/downloads","issues_url":"https://api.github.com/repos/aseba-community/aseba/issues{/number}","pulls_url":"https://api.github.com/repos/aseba-community/aseba/pulls{/number}","milestones_url":"https://api.github.com/repos/aseba-community/aseba/milestones{/number}","notifications_url":"https://api.github.com/repos/aseba-community/aseba/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aseba-community/aseba/labels{/name}","releases_url":"https://api.github.com/repos/aseba-community/aseba/releases{/id}","deployments_url":"https://api.github.com/repos/aseba-community/aseba/deployments","created_at":"2011-08-11T14:03:08Z","updated_at":"2016-08-25T15:15:21Z","pushed_at":"2016-09-03T22:03:43Z","git_url":"git://github.com/aseba-community/aseba.git","ssh_url":"git@github.com:aseba-community/aseba.git","clone_url":"https://github.com/aseba-community/aseba.git","svn_url":"https://github.com/aseba-community/aseba","homepage":"http://aseba.wikidot.com","size":18416,"stargazers_count":16,"watchers_count":16,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":124,"forks":39,"open_issues":124,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aseba-community/aseba/pulls/551"},"html":{"href":"https://github.com/aseba-community/aseba/pull/551"},"issue":{"href":"https://api.github.com/repos/aseba-community/aseba/issues/551"},"comments":{"href":"https://api.github.com/repos/aseba-community/aseba/issues/551/comments"},"review_comments":{"href":"https://api.github.com/repos/aseba-community/aseba/pulls/551/comments"},"review_comment":{"href":"https://api.github.com/repos/aseba-community/aseba/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aseba-community/aseba/pulls/551/commits"},"statuses":{"href":"https://api.github.com/repos/aseba-community/aseba/statuses/f6f906a4bb21eef9306fdb7d60c2a3316253d8c0"}}}}
{"actor":{"display_login":"davidjsherman"}}