{"action":"created","comment":{"url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/comments/33332557","id":33332557,"diff_hunk":"@@ -395,6 +397,30 @@ of {{RFC7515}}.  If the value of a \"nonce\" header parameter is not\n valid according to this encoding, then the verifier MUST reject the\n JWS as malformed.\n \n+## Directory\n+\n+In order to help clients configure themselves with the right URLs for each ACME\n+operation, ACME servers provide a directory object. This should be the root URL\n+with which clients are configured. It is a JSON dictionary, whose keys are the\n+names of ACME functions, and whose values are the URIs used to accomplish the\n+corresponding function. The function names are:\n+\n+ - newRegistration (see Registration below)\n+ - newAuthorization (see Identifier Authorization below)\n+ - newCertificate (see Certificate Issuance below)\n+ - revokeCertificate (see Certificate Revocation below)\n+\n+~~~~~~~~~~\n+HTTP/1.1 200 OK\n+Content-Type: application/json\n+\n+{\n+  \"newRegistration\": \"https://example.com/acme/new-reg\",\n+  \"newAuthorization\": \"https://example.com/acme/new-authz\",\n+  \"newCertificate\": \"https://example.com/acme/new-cert\",\n+  \"revokeCertificate\": \"https://example.com/acme/revoke-cert\"","path":"draft-barnes-acme.md","position":42,"original_position":42,"commit_id":"f070607771a8ba2e04ea95313531b61172354f59","original_commit_id":"f070607771a8ba2e04ea95313531b61172354f59","user":{"login":"martinthomson","id":67641,"avatar_url":"https://avatars.githubusercontent.com/u/67641?v=3","gravatar_id":"","url":"https://api.github.com/users/martinthomson","html_url":"https://github.com/martinthomson","followers_url":"https://api.github.com/users/martinthomson/followers","following_url":"https://api.github.com/users/martinthomson/following{/other_user}","gists_url":"https://api.github.com/users/martinthomson/gists{/gist_id}","starred_url":"https://api.github.com/users/martinthomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinthomson/subscriptions","organizations_url":"https://api.github.com/users/martinthomson/orgs","repos_url":"https://api.github.com/users/martinthomson/repos","events_url":"https://api.github.com/users/martinthomson/events{/privacy}","received_events_url":"https://api.github.com/users/martinthomson/received_events","type":"User","site_admin":false},"body":"These names need to match up with the names that are used in #156 ","created_at":"2015-06-26T06:52:46Z","updated_at":"2015-06-26T06:52:46Z","html_url":"https://github.com/letsencrypt/acme-spec/pull/138#discussion_r33332557","pull_request_url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/comments/33332557"},"html":{"href":"https://github.com/letsencrypt/acme-spec/pull/138#discussion_r33332557"},"pull_request":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138","id":37072687,"html_url":"https://github.com/letsencrypt/acme-spec/pull/138","diff_url":"https://github.com/letsencrypt/acme-spec/pull/138.diff","patch_url":"https://github.com/letsencrypt/acme-spec/pull/138.patch","issue_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues/138","number":138,"state":"open","locked":false,"title":"Add directory object","user":{"login":"jsha","id":220205,"avatar_url":"https://avatars.githubusercontent.com/u/220205?v=3","gravatar_id":"","url":"https://api.github.com/users/jsha","html_url":"https://github.com/jsha","followers_url":"https://api.github.com/users/jsha/followers","following_url":"https://api.github.com/users/jsha/following{/other_user}","gists_url":"https://api.github.com/users/jsha/gists{/gist_id}","starred_url":"https://api.github.com/users/jsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsha/subscriptions","organizations_url":"https://api.github.com/users/jsha/orgs","repos_url":"https://api.github.com/users/jsha/repos","events_url":"https://api.github.com/users/jsha/events{/privacy}","received_events_url":"https://api.github.com/users/jsha/received_events","type":"User","site_admin":false},"body":"This allows clients to be configured with a single URL that will give them information about the other URLs available for various resources.","created_at":"2015-06-05T21:40:31Z","updated_at":"2015-06-26T06:52:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"173d919b02c7a1f2ec8869e73ccd4ce7a266c945","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138/commits","review_comments_url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138/comments","review_comment_url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues/138/comments","statuses_url":"https://api.github.com/repos/letsencrypt/acme-spec/statuses/f070607771a8ba2e04ea95313531b61172354f59","head":{"label":"letsencrypt:directory","ref":"directory","sha":"f070607771a8ba2e04ea95313531b61172354f59","user":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"repo":{"id":25449702,"name":"acme-spec","full_name":"letsencrypt/acme-spec","owner":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/letsencrypt/acme-spec","description":"ACME Specification","fork":false,"url":"https://api.github.com/repos/letsencrypt/acme-spec","forks_url":"https://api.github.com/repos/letsencrypt/acme-spec/forks","keys_url":"https://api.github.com/repos/letsencrypt/acme-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/letsencrypt/acme-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/letsencrypt/acme-spec/teams","hooks_url":"https://api.github.com/repos/letsencrypt/acme-spec/hooks","issue_events_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues/events{/number}","events_url":"https://api.github.com/repos/letsencrypt/acme-spec/events","assignees_url":"https://api.github.com/repos/letsencrypt/acme-spec/assignees{/user}","branches_url":"https://api.github.com/repos/letsencrypt/acme-spec/branches{/branch}","tags_url":"https://api.github.com/repos/letsencrypt/acme-spec/tags","blobs_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/letsencrypt/acme-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/letsencrypt/acme-spec/languages","stargazers_url":"https://api.github.com/repos/letsencrypt/acme-spec/stargazers","contributors_url":"https://api.github.com/repos/letsencrypt/acme-spec/contributors","subscribers_url":"https://api.github.com/repos/letsencrypt/acme-spec/subscribers","subscription_url":"https://api.github.com/repos/letsencrypt/acme-spec/subscription","commits_url":"https://api.github.com/repos/letsencrypt/acme-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/letsencrypt/acme-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/letsencrypt/acme-spec/contents/{+path}","compare_url":"https://api.github.com/repos/letsencrypt/acme-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/letsencrypt/acme-spec/merges","archive_url":"https://api.github.com/repos/letsencrypt/acme-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/letsencrypt/acme-spec/downloads","issues_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues{/number}","pulls_url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/letsencrypt/acme-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/letsencrypt/acme-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/letsencrypt/acme-spec/labels{/name}","releases_url":"https://api.github.com/repos/letsencrypt/acme-spec/releases{/id}","created_at":"2014-10-20T03:43:00Z","updated_at":"2015-06-25T20:26:51Z","pushed_at":"2015-06-26T06:51:45Z","git_url":"git://github.com/letsencrypt/acme-spec.git","ssh_url":"git@github.com:letsencrypt/acme-spec.git","clone_url":"https://github.com/letsencrypt/acme-spec.git","svn_url":"https://github.com/letsencrypt/acme-spec","homepage":null,"size":1449,"stargazers_count":793,"watchers_count":793,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":68,"mirror_url":null,"open_issues_count":38,"forks":68,"open_issues":38,"watchers":793,"default_branch":"master"}},"base":{"label":"letsencrypt:master","ref":"master","sha":"53a8479ad9c5566678d2f899ac93dfbb341a65fa","user":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"repo":{"id":25449702,"name":"acme-spec","full_name":"letsencrypt/acme-spec","owner":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/letsencrypt/acme-spec","description":"ACME Specification","fork":false,"url":"https://api.github.com/repos/letsencrypt/acme-spec","forks_url":"https://api.github.com/repos/letsencrypt/acme-spec/forks","keys_url":"https://api.github.com/repos/letsencrypt/acme-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/letsencrypt/acme-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/letsencrypt/acme-spec/teams","hooks_url":"https://api.github.com/repos/letsencrypt/acme-spec/hooks","issue_events_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues/events{/number}","events_url":"https://api.github.com/repos/letsencrypt/acme-spec/events","assignees_url":"https://api.github.com/repos/letsencrypt/acme-spec/assignees{/user}","branches_url":"https://api.github.com/repos/letsencrypt/acme-spec/branches{/branch}","tags_url":"https://api.github.com/repos/letsencrypt/acme-spec/tags","blobs_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/letsencrypt/acme-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/letsencrypt/acme-spec/languages","stargazers_url":"https://api.github.com/repos/letsencrypt/acme-spec/stargazers","contributors_url":"https://api.github.com/repos/letsencrypt/acme-spec/contributors","subscribers_url":"https://api.github.com/repos/letsencrypt/acme-spec/subscribers","subscription_url":"https://api.github.com/repos/letsencrypt/acme-spec/subscription","commits_url":"https://api.github.com/repos/letsencrypt/acme-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/letsencrypt/acme-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/letsencrypt/acme-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/letsencrypt/acme-spec/contents/{+path}","compare_url":"https://api.github.com/repos/letsencrypt/acme-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/letsencrypt/acme-spec/merges","archive_url":"https://api.github.com/repos/letsencrypt/acme-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/letsencrypt/acme-spec/downloads","issues_url":"https://api.github.com/repos/letsencrypt/acme-spec/issues{/number}","pulls_url":"https://api.github.com/repos/letsencrypt/acme-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/letsencrypt/acme-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/letsencrypt/acme-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/letsencrypt/acme-spec/labels{/name}","releases_url":"https://api.github.com/repos/letsencrypt/acme-spec/releases{/id}","created_at":"2014-10-20T03:43:00Z","updated_at":"2015-06-25T20:26:51Z","pushed_at":"2015-06-26T06:51:45Z","git_url":"git://github.com/letsencrypt/acme-spec.git","ssh_url":"git@github.com:letsencrypt/acme-spec.git","clone_url":"https://github.com/letsencrypt/acme-spec.git","svn_url":"https://github.com/letsencrypt/acme-spec","homepage":null,"size":1449,"stargazers_count":793,"watchers_count":793,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":68,"mirror_url":null,"open_issues_count":38,"forks":68,"open_issues":38,"watchers":793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138"},"html":{"href":"https://github.com/letsencrypt/acme-spec/pull/138"},"issue":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/issues/138"},"comments":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/letsencrypt/acme-spec/statuses/f070607771a8ba2e04ea95313531b61172354f59"}}}}