{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/content-store/pulls/comments/25884903","id":25884903,"diff_hunk":"@@ -23,14 +23,11 @@\n         expect(intent.publish_time).to match_datetime(publish_time)\n       end\n \n-      it \"responds with a created status, and the intent as json\" do\n+      it \"responds with a created status and an empty JSON document\" do\n         put_json \"/publish-intent/vat-rates\", data\n \n         expect(response.status).to eq(201)\n-\n-        data = JSON.parse(response.body)\n-        expect(data['base_path']).to eq('/vat-rates')\n-        expect(data['publish_time']).to match_datetime(publish_time)\n+        expect(response.body).to eq('{}')","path":"spec/integration/publish_intent_crud_spec.rb","position":13,"original_position":13,"commit_id":"11835d66a528d985878f2e0702d0a2c5aef8e4a5","original_commit_id":"11835d66a528d985878f2e0702d0a2c5aef8e4a5","user":{"login":"heathd","id":61065,"avatar_url":"https://avatars.githubusercontent.com/u/61065?v=3","gravatar_id":"","url":"https://api.github.com/users/heathd","html_url":"https://github.com/heathd","followers_url":"https://api.github.com/users/heathd/followers","following_url":"https://api.github.com/users/heathd/following{/other_user}","gists_url":"https://api.github.com/users/heathd/gists{/gist_id}","starred_url":"https://api.github.com/users/heathd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heathd/subscriptions","organizations_url":"https://api.github.com/users/heathd/orgs","repos_url":"https://api.github.com/users/heathd/repos","events_url":"https://api.github.com/users/heathd/events{/privacy}","received_events_url":"https://api.github.com/users/heathd/received_events","type":"User","site_admin":false},"body":"given [Daniel's comment on the API guidelines RFC](https://gov-uk.atlassian.net/wiki/display/PUB/RFC+6%3A+API+guidelines?focusedCommentId=23855338#comment-23855338), I'll go ahead and merge this","created_at":"2015-03-05T17:52:21Z","updated_at":"2015-03-05T17:52:21Z","html_url":"https://github.com/alphagov/content-store/pull/107#discussion_r25884903","pull_request_url":"https://api.github.com/repos/alphagov/content-store/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/alphagov/content-store/pulls/comments/25884903"},"html":{"href":"https://github.com/alphagov/content-store/pull/107#discussion_r25884903"},"pull_request":{"href":"https://api.github.com/repos/alphagov/content-store/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/content-store/pulls/107","id":30392934,"html_url":"https://github.com/alphagov/content-store/pull/107","diff_url":"https://github.com/alphagov/content-store/pull/107.diff","patch_url":"https://github.com/alphagov/content-store/pull/107.patch","issue_url":"https://api.github.com/repos/alphagov/content-store/issues/107","number":107,"state":"open","locked":false,"title":"Dont return entity in PUT responses","user":{"login":"jamiecobbett","id":93739,"avatar_url":"https://avatars.githubusercontent.com/u/93739?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiecobbett","html_url":"https://github.com/jamiecobbett","followers_url":"https://api.github.com/users/jamiecobbett/followers","following_url":"https://api.github.com/users/jamiecobbett/following{/other_user}","gists_url":"https://api.github.com/users/jamiecobbett/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiecobbett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiecobbett/subscriptions","organizations_url":"https://api.github.com/users/jamiecobbett/orgs","repos_url":"https://api.github.com/users/jamiecobbett/repos","events_url":"https://api.github.com/users/jamiecobbett/events{/privacy}","received_events_url":"https://api.github.com/users/jamiecobbett/received_events","type":"User","site_admin":false},"body":"content-store returns the entity (the thing you sent it) as part of the response document, with an `errors` key mixed in. We don't have a use-case for this and we can't think of one, other than a stateless client (but we don't think this is a strong use case). If we need it, we can add it back in.\r\n\r\nAside:\r\nThis change makes some other work much simpler - https://github.com/alphagov/gds-api-adapters/pull/276","created_at":"2015-03-03T17:13:25Z","updated_at":"2015-03-05T17:52:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2e75da45e8ba9b7c32fe395493c421d5c34d3fe","assignee":{"login":"vinayvinay","id":230074,"avatar_url":"https://avatars.githubusercontent.com/u/230074?v=3","gravatar_id":"","url":"https://api.github.com/users/vinayvinay","html_url":"https://github.com/vinayvinay","followers_url":"https://api.github.com/users/vinayvinay/followers","following_url":"https://api.github.com/users/vinayvinay/following{/other_user}","gists_url":"https://api.github.com/users/vinayvinay/gists{/gist_id}","starred_url":"https://api.github.com/users/vinayvinay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinayvinay/subscriptions","organizations_url":"https://api.github.com/users/vinayvinay/orgs","repos_url":"https://api.github.com/users/vinayvinay/repos","events_url":"https://api.github.com/users/vinayvinay/events{/privacy}","received_events_url":"https://api.github.com/users/vinayvinay/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/content-store/pulls/107/commits","review_comments_url":"https://api.github.com/repos/alphagov/content-store/pulls/107/comments","review_comment_url":"https://api.github.com/repos/alphagov/content-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/content-store/issues/107/comments","statuses_url":"https://api.github.com/repos/alphagov/content-store/statuses/11835d66a528d985878f2e0702d0a2c5aef8e4a5","head":{"label":"alphagov:dont_return_entity_in_put_responses","ref":"dont_return_entity_in_put_responses","sha":"11835d66a528d985878f2e0702d0a2c5aef8e4a5","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":18069188,"name":"content-store","full_name":"alphagov/content-store","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/content-store","description":"The central storage of published content on GOV.UK.","fork":false,"url":"https://api.github.com/repos/alphagov/content-store","forks_url":"https://api.github.com/repos/alphagov/content-store/forks","keys_url":"https://api.github.com/repos/alphagov/content-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/content-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/content-store/teams","hooks_url":"https://api.github.com/repos/alphagov/content-store/hooks","issue_events_url":"https://api.github.com/repos/alphagov/content-store/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/content-store/events","assignees_url":"https://api.github.com/repos/alphagov/content-store/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/content-store/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/content-store/tags","blobs_url":"https://api.github.com/repos/alphagov/content-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/content-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/content-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/content-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/content-store/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/content-store/languages","stargazers_url":"https://api.github.com/repos/alphagov/content-store/stargazers","contributors_url":"https://api.github.com/repos/alphagov/content-store/contributors","subscribers_url":"https://api.github.com/repos/alphagov/content-store/subscribers","subscription_url":"https://api.github.com/repos/alphagov/content-store/subscription","commits_url":"https://api.github.com/repos/alphagov/content-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/content-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/content-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/content-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/content-store/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/content-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/content-store/merges","archive_url":"https://api.github.com/repos/alphagov/content-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/content-store/downloads","issues_url":"https://api.github.com/repos/alphagov/content-store/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/content-store/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/content-store/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/content-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/content-store/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/content-store/releases{/id}","created_at":"2014-03-24T16:22:06Z","updated_at":"2015-03-05T12:44:55Z","pushed_at":"2015-03-05T16:05:39Z","git_url":"git://github.com/alphagov/content-store.git","ssh_url":"git@github.com:alphagov/content-store.git","clone_url":"https://github.com/alphagov/content-store.git","svn_url":"https://github.com/alphagov/content-store","homepage":"","size":2897,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"a0c233ce657b01b7c370b494cba1b836b7fb78b1","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":18069188,"name":"content-store","full_name":"alphagov/content-store","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/content-store","description":"The central storage of published content on GOV.UK.","fork":false,"url":"https://api.github.com/repos/alphagov/content-store","forks_url":"https://api.github.com/repos/alphagov/content-store/forks","keys_url":"https://api.github.com/repos/alphagov/content-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/content-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/content-store/teams","hooks_url":"https://api.github.com/repos/alphagov/content-store/hooks","issue_events_url":"https://api.github.com/repos/alphagov/content-store/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/content-store/events","assignees_url":"https://api.github.com/repos/alphagov/content-store/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/content-store/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/content-store/tags","blobs_url":"https://api.github.com/repos/alphagov/content-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/content-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/content-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/content-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/content-store/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/content-store/languages","stargazers_url":"https://api.github.com/repos/alphagov/content-store/stargazers","contributors_url":"https://api.github.com/repos/alphagov/content-store/contributors","subscribers_url":"https://api.github.com/repos/alphagov/content-store/subscribers","subscription_url":"https://api.github.com/repos/alphagov/content-store/subscription","commits_url":"https://api.github.com/repos/alphagov/content-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/content-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/content-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/content-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/content-store/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/content-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/content-store/merges","archive_url":"https://api.github.com/repos/alphagov/content-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/content-store/downloads","issues_url":"https://api.github.com/repos/alphagov/content-store/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/content-store/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/content-store/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/content-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/content-store/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/content-store/releases{/id}","created_at":"2014-03-24T16:22:06Z","updated_at":"2015-03-05T12:44:55Z","pushed_at":"2015-03-05T16:05:39Z","git_url":"git://github.com/alphagov/content-store.git","ssh_url":"git@github.com:alphagov/content-store.git","clone_url":"https://github.com/alphagov/content-store.git","svn_url":"https://github.com/alphagov/content-store","homepage":"","size":2897,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/content-store/pulls/107"},"html":{"href":"https://github.com/alphagov/content-store/pull/107"},"issue":{"href":"https://api.github.com/repos/alphagov/content-store/issues/107"},"comments":{"href":"https://api.github.com/repos/alphagov/content-store/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/content-store/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/content-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/content-store/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/content-store/statuses/11835d66a528d985878f2e0702d0a2c5aef8e4a5"}}}}