{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments/92411981","pull_request_review_id":12922159,"id":92411981,"diff_hunk":"@@ -0,0 +1,73 @@\n+<?php\n+\n+/*\n+ * This file is part of the Superdesk Web Publisher Core Bundle.\n+ *\n+ * Copyright 2016 Sourcefabric z.ú. and contributors.\n+ *\n+ * For the full copyright and license information, please see the\n+ * AUTHORS and LICENSE files distributed with this source code.\n+ *\n+ * @copyright 2016 Sourcefabric z.ú\n+ * @license http://www.superdesk.org/license\n+ */\n+\n+namespace SWP\\Bundle\\CoreBundle\\Controller;\n+\n+use Nelmio\\ApiDocBundle\\Annotation\\ApiDoc;\n+use Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Method;\n+use Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\n+use SWP\\Component\\Common\\Criteria\\Criteria;\n+use SWP\\Component\\Common\\Pagination\\PaginationData;\n+use SWP\\Component\\Common\\Response\\ResourcesListResponse;\n+use SWP\\Component\\Common\\Response\\SingleResourceResponse;\n+use Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n+use Symfony\\Component\\HttpFoundation\\Request;\n+\n+class FbiaArticleController extends Controller\n+{\n+    /**\n+     * @ApiDoc(\n+     *     resource=true,\n+     *     description=\"Lists Facebook Instant Articles submitted articles\",\n+     *     statusCodes={\n+     *         200=\"Returned on success.\",\n+     *         500=\"Unexpected error.\"\n+     *     }\n+     * )\n+     * @Route(\"/api/{version}/facebook/instantarticles/articles/\", options={\"expose\"=true}, defaults={\"version\"=\"v1\"}, name=\"swp_api_list_facebook_instant_articles_articles\")\n+     * @Method(\"GET\")\n+     */\n+    public function listAction(Request $request)\n+    {\n+        $repository = $this->get('swp.repository.facebook_instant_articles_article');\n+\n+        $items = $repository->getPaginatedByCriteria(\n+            new Criteria(),\n+            ['createdAt' => 'desc'],\n+            new PaginationData($request)\n+        );\n+\n+        return new ResourcesListResponse($items);\n+    }\n+\n+    /**\n+     * @ApiDoc(\n+     *     resource=true,\n+     *     description=\"Lists Facebook Instant Articles submitted articles\",\n+     *     statusCodes={\n+     *         200=\"Returned on success.\",\n+     *         500=\"Unexpected error.\"\n+     *     }\n+     * )\n+     * @Route(\"/api/{version}/facebook/instantarticles/articles/{submissionId}\", options={\"expose\"=true}, defaults={\"version\"=\"v1\"}, name=\"swp_api_facebook_instant_articles_articles_update\")\n+     * @Method(\"GET|POST\")\n+     */\n+    public function updateSubmissionAction(string $submissionId)","path":"src/SWP/Bundle/CoreBundle/Controller/FbiaArticleController.php","position":66,"original_position":66,"commit_id":"98dee08c12279cacca8673800321083fc2da1122","original_commit_id":"98dee08c12279cacca8673800321083fc2da1122","user":{"login":"takeit","id":562536,"avatar_url":"https://avatars.githubusercontent.com/u/562536?v=3","gravatar_id":"","url":"https://api.github.com/users/takeit","html_url":"https://github.com/takeit","followers_url":"https://api.github.com/users/takeit/followers","following_url":"https://api.github.com/users/takeit/following{/other_user}","gists_url":"https://api.github.com/users/takeit/gists{/gist_id}","starred_url":"https://api.github.com/users/takeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeit/subscriptions","organizations_url":"https://api.github.com/users/takeit/orgs","repos_url":"https://api.github.com/users/takeit/repos","events_url":"https://api.github.com/users/takeit/events{/privacy}","received_events_url":"https://api.github.com/users/takeit/received_events","type":"User","site_admin":false},"body":"Does it only update or display submitted articles or article? because in the api doc description there is `Lists Facebook Instant Articles submitted articles` but in response variable name is `$instantArticle`\r\n\r\nand the method is GET|POST, plus action name says `updateSubmissionAction` so I'm confused here","created_at":"2016-12-14T15:09:20Z","updated_at":"2016-12-14T15:52:22Z","html_url":"https://github.com/superdesk/web-publisher/pull/188#discussion_r92411981","pull_request_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/188","_links":{"self":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments/92411981"},"html":{"href":"https://github.com/superdesk/web-publisher/pull/188#discussion_r92411981"},"pull_request":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/188"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/web-publisher/pulls/188","id":95712668,"html_url":"https://github.com/superdesk/web-publisher/pull/188","diff_url":"https://github.com/superdesk/web-publisher/pull/188.diff","patch_url":"https://github.com/superdesk/web-publisher/pull/188.patch","issue_url":"https://api.github.com/repos/superdesk/web-publisher/issues/188","number":188,"state":"open","locked":false,"title":"[WIP] [FacebookInstantArticlesBundle] Initialize bundle, add docs, implement FB authentication","user":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=3","gravatar_id":"","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"body":"| Q                         | A\r\n| ------------------------- | ---\r\n| Bug fix?                  | yes|no\r\n| New feature?              | yes|no\r\n| BC breaks?                | yes|no\r\n| Deprecations?             | yes|no\r\n| Tests pass?               | yes|no\r\n| Changelog update required | yes|no\r\n| Fixed tickets             | comma separated list of tickets fixed by the PR\r\n| License                   | AGPLv3","created_at":"2016-11-29T15:21:41Z","updated_at":"2016-12-14T15:52:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd818b52e501fc2d8db632b2efa317399d6d93bf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/188/commits","review_comments_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/188/comments","review_comment_url":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/web-publisher/issues/188/comments","statuses_url":"https://api.github.com/repos/superdesk/web-publisher/statuses/98dee08c12279cacca8673800321083fc2da1122","head":{"label":"ahilles107:SWP-435_init_fbia_bundle","ref":"SWP-435_init_fbia_bundle","sha":"98dee08c12279cacca8673800321083fc2da1122","user":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=3","gravatar_id":"","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"repo":{"id":36223851,"name":"web-publisher","full_name":"ahilles107/web-publisher","owner":{"login":"ahilles107","id":298610,"avatar_url":"https://avatars.githubusercontent.com/u/298610?v=3","gravatar_id":"","url":"https://api.github.com/users/ahilles107","html_url":"https://github.com/ahilles107","followers_url":"https://api.github.com/users/ahilles107/followers","following_url":"https://api.github.com/users/ahilles107/following{/other_user}","gists_url":"https://api.github.com/users/ahilles107/gists{/gist_id}","starred_url":"https://api.github.com/users/ahilles107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahilles107/subscriptions","organizations_url":"https://api.github.com/users/ahilles107/orgs","repos_url":"https://api.github.com/users/ahilles107/repos","events_url":"https://api.github.com/users/ahilles107/events{/privacy}","received_events_url":"https://api.github.com/users/ahilles107/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahilles107/web-publisher","description":"Superdesk Web renderer","fork":true,"url":"https://api.github.com/repos/ahilles107/web-publisher","forks_url":"https://api.github.com/repos/ahilles107/web-publisher/forks","keys_url":"https://api.github.com/repos/ahilles107/web-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahilles107/web-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahilles107/web-publisher/teams","hooks_url":"https://api.github.com/repos/ahilles107/web-publisher/hooks","issue_events_url":"https://api.github.com/repos/ahilles107/web-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/ahilles107/web-publisher/events","assignees_url":"https://api.github.com/repos/ahilles107/web-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/ahilles107/web-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/ahilles107/web-publisher/tags","blobs_url":"https://api.github.com/repos/ahilles107/web-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahilles107/web-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahilles107/web-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahilles107/web-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahilles107/web-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/ahilles107/web-publisher/languages","stargazers_url":"https://api.github.com/repos/ahilles107/web-publisher/stargazers","contributors_url":"https://api.github.com/repos/ahilles107/web-publisher/contributors","subscribers_url":"https://api.github.com/repos/ahilles107/web-publisher/subscribers","subscription_url":"https://api.github.com/repos/ahilles107/web-publisher/subscription","commits_url":"https://api.github.com/repos/ahilles107/web-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahilles107/web-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahilles107/web-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahilles107/web-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahilles107/web-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/ahilles107/web-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahilles107/web-publisher/merges","archive_url":"https://api.github.com/repos/ahilles107/web-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahilles107/web-publisher/downloads","issues_url":"https://api.github.com/repos/ahilles107/web-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/ahilles107/web-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/ahilles107/web-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/ahilles107/web-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahilles107/web-publisher/labels{/name}","releases_url":"https://api.github.com/repos/ahilles107/web-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/ahilles107/web-publisher/deployments","created_at":"2015-05-25T10:04:31Z","updated_at":"2016-10-24T16:00:19Z","pushed_at":"2016-12-14T12:03:41Z","git_url":"git://github.com/ahilles107/web-publisher.git","ssh_url":"git@github.com:ahilles107/web-publisher.git","clone_url":"https://github.com/ahilles107/web-publisher.git","svn_url":"https://github.com/ahilles107/web-publisher","homepage":null,"size":10927,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"superdesk:master","ref":"master","sha":"e9e76a2e5c752b5a9c0bb6a274dd61c635f9077e","user":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":36218357,"name":"web-publisher","full_name":"superdesk/web-publisher","owner":{"login":"superdesk","id":5527298,"avatar_url":"https://avatars.githubusercontent.com/u/5527298?v=3","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/superdesk/web-publisher","description":"Superdesk Web Publisher - the next generation publishing platform for journalists and newsrooms.","fork":false,"url":"https://api.github.com/repos/superdesk/web-publisher","forks_url":"https://api.github.com/repos/superdesk/web-publisher/forks","keys_url":"https://api.github.com/repos/superdesk/web-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/web-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/web-publisher/teams","hooks_url":"https://api.github.com/repos/superdesk/web-publisher/hooks","issue_events_url":"https://api.github.com/repos/superdesk/web-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/web-publisher/events","assignees_url":"https://api.github.com/repos/superdesk/web-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/web-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/web-publisher/tags","blobs_url":"https://api.github.com/repos/superdesk/web-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/web-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/web-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/web-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/web-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/web-publisher/languages","stargazers_url":"https://api.github.com/repos/superdesk/web-publisher/stargazers","contributors_url":"https://api.github.com/repos/superdesk/web-publisher/contributors","subscribers_url":"https://api.github.com/repos/superdesk/web-publisher/subscribers","subscription_url":"https://api.github.com/repos/superdesk/web-publisher/subscription","commits_url":"https://api.github.com/repos/superdesk/web-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/web-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/web-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/web-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/web-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/web-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/web-publisher/merges","archive_url":"https://api.github.com/repos/superdesk/web-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/web-publisher/downloads","issues_url":"https://api.github.com/repos/superdesk/web-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/web-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/web-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/web-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/web-publisher/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/web-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/superdesk/web-publisher/deployments","created_at":"2015-05-25T08:04:59Z","updated_at":"2016-11-07T21:21:50Z","pushed_at":"2016-12-14T13:56:34Z","git_url":"git://github.com/superdesk/web-publisher.git","ssh_url":"git@github.com:superdesk/web-publisher.git","clone_url":"https://github.com/superdesk/web-publisher.git","svn_url":"https://github.com/superdesk/web-publisher","homepage":"","size":9730,"stargazers_count":10,"watchers_count":10,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/188"},"html":{"href":"https://github.com/superdesk/web-publisher/pull/188"},"issue":{"href":"https://api.github.com/repos/superdesk/web-publisher/issues/188"},"comments":{"href":"https://api.github.com/repos/superdesk/web-publisher/issues/188/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/188/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/web-publisher/pulls/188/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/web-publisher/statuses/98dee08c12279cacca8673800321083fc2da1122"}}}}
{"actor":{"display_login":"takeit"}}