{"action":"created","comment":{"url":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/86101019","pull_request_review_id":6775189,"id":86101019,"diff_hunk":"@@ -0,0 +1,111 @@\n+swagger: '2.0'\n+info:\n+  version: '1.0.0-beta'\n+  title: MediaWiki Citation API\n+  description: Citation API based on the Citoid services\n+  termsOfService: https://github.com/wikimedia/restbase#restbase\n+  contact:\n+    name: Services\n+    email: services@lists.wikimedia.org\n+    url: https://www.mediawiki.org/wiki/Services\n+  license:\n+    name: Apache licence, v2\n+    url: https://www.apache.org/licenses/LICENSE-2.0\n+paths:\n+  /citation/{format}/{query}:\n+    get:\n+      tags:\n+        - Citation\n+      summary: Get citation data given an article identifyer.\n+      description: |\n+        Generates citation data given a URL, DOI, PMID, or PMCID.\n+\n+        See more at [Citoid service documentation](https://www.mediawiki.org/wiki/Citoid)\n+\n+        Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)\n+      produces:\n+        - application/json; charset=utf-8;\n+        - application/x-bibtex; charset=utf-8\n+      parameters:\n+        - name: format\n+          in: path\n+          description: \"The format to use for the resulting citation data\"\n+          enum:\n+            - mediawiki\n+            - bibtex\n+            - zotero\n+          required: true\n+        - name: query\n+          in: path\n+          description: >\n+            URL of an article, DOI, PMCID or PMID in the URL-encoded format.\n+            Note that on the Swagger-UI doc page you don't need to URI-encode the\n+            parameter manually, it will be done by the docs engine.\n+          type: string\n+          required: true\n+        - name: basefields\n+          in: query\n+          type: boolean\n+          required: false\n+          description: >\n+            Optional boolean argument. If it is set to true (or 1), it will return the base\n+            fields for the data in addition to the mapped fields. For example, it will return\n+            `publicationTitle` in addition to `bookTitle` or `websiteTitle`\n+        - name: Accept-Language\n+          in: header\n+          type: string\n+          required: false\n+          description: >\n+            For some articles the result depends on the `Accept-Language` header, so\n+            provide it if localized content is required.\n+      responses:\n+        '200':\n+          description: The citation data in the requested format\n+        '404':\n+          description: Citation data was not found.\n+          schema:\n+            $ref: '#/definitions/problem'\n+        default:\n+          description: Error\n+          schema:\n+            $ref: '#/definitions/problem'\n+\n+      x-request-handler:\n+        - get_citation_from_backend:\n+            request:\n+              method: get\n+              uri: '{{options.host}}/api?format={format}&search={query}'\n+              headers:\n+                accept-language: '{{accept-language}}'","path":"v1/citoid.yaml","position":79,"original_position":79,"commit_id":"76317cccb406145c72ee88ff52c3e5f385b11553","original_commit_id":"76317cccb406145c72ee88ff52c3e5f385b11553","user":{"login":"d00rman","id":10210173,"avatar_url":"https://avatars.githubusercontent.com/u/10210173?v=3","gravatar_id":"","url":"https://api.github.com/users/d00rman","html_url":"https://github.com/d00rman","followers_url":"https://api.github.com/users/d00rman/followers","following_url":"https://api.github.com/users/d00rman/following{/other_user}","gists_url":"https://api.github.com/users/d00rman/gists{/gist_id}","starred_url":"https://api.github.com/users/d00rman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d00rman/subscriptions","organizations_url":"https://api.github.com/users/d00rman/orgs","repos_url":"https://api.github.com/users/d00rman/repos","events_url":"https://api.github.com/users/d00rman/events{/privacy}","received_events_url":"https://api.github.com/users/d00rman/received_events","type":"User","site_admin":false},"body":"+1 for exposing the site info via `/sys`. Agreed that it's a bit hacky, but it will certainly be useful and much easier than the alternative.","created_at":"2016-11-02T09:29:11Z","updated_at":"2016-11-02T09:29:11Z","html_url":"https://github.com/wikimedia/restbase/pull/699#discussion_r86101019","pull_request_url":"https://api.github.com/repos/wikimedia/restbase/pulls/699","_links":{"self":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/86101019"},"html":{"href":"https://github.com/wikimedia/restbase/pull/699#discussion_r86101019"},"pull_request":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/699"}}},"pull_request":{"url":"https://api.github.com/repos/wikimedia/restbase/pulls/699","id":91296163,"html_url":"https://github.com/wikimedia/restbase/pull/699","diff_url":"https://github.com/wikimedia/restbase/pull/699.diff","patch_url":"https://github.com/wikimedia/restbase/pull/699.patch","issue_url":"https://api.github.com/repos/wikimedia/restbase/issues/699","number":699,"state":"open","locked":false,"title":"Set up citoid proxy endpoint","user":{"login":"Pchelolo","id":814754,"avatar_url":"https://avatars.githubusercontent.com/u/814754?v=3","gravatar_id":"","url":"https://api.github.com/users/Pchelolo","html_url":"https://github.com/Pchelolo","followers_url":"https://api.github.com/users/Pchelolo/followers","following_url":"https://api.github.com/users/Pchelolo/following{/other_user}","gists_url":"https://api.github.com/users/Pchelolo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pchelolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pchelolo/subscriptions","organizations_url":"https://api.github.com/users/Pchelolo/orgs","repos_url":"https://api.github.com/users/Pchelolo/repos","events_url":"https://api.github.com/users/Pchelolo/events{/privacy}","received_events_url":"https://api.github.com/users/Pchelolo/received_events","type":"User","site_admin":false},"body":"As the first step and the beginning of the discussion, set up a simple proxying Citoid endpoint in RESTBase.\n\nBug: https://phabricator.wikimedia.org/T108646\ncc @wikimedia/services \n","created_at":"2016-10-27T23:00:23Z","updated_at":"2016-11-02T09:29:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7233f7ccb06e9b89d29989300dde2d29013270f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wikimedia/restbase/pulls/699/commits","review_comments_url":"https://api.github.com/repos/wikimedia/restbase/pulls/699/comments","review_comment_url":"https://api.github.com/repos/wikimedia/restbase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wikimedia/restbase/issues/699/comments","statuses_url":"https://api.github.com/repos/wikimedia/restbase/statuses/76317cccb406145c72ee88ff52c3e5f385b11553","head":{"label":"Pchelolo:citoid","ref":"citoid","sha":"76317cccb406145c72ee88ff52c3e5f385b11553","user":{"login":"Pchelolo","id":814754,"avatar_url":"https://avatars.githubusercontent.com/u/814754?v=3","gravatar_id":"","url":"https://api.github.com/users/Pchelolo","html_url":"https://github.com/Pchelolo","followers_url":"https://api.github.com/users/Pchelolo/followers","following_url":"https://api.github.com/users/Pchelolo/following{/other_user}","gists_url":"https://api.github.com/users/Pchelolo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pchelolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pchelolo/subscriptions","organizations_url":"https://api.github.com/users/Pchelolo/orgs","repos_url":"https://api.github.com/users/Pchelolo/repos","events_url":"https://api.github.com/users/Pchelolo/events{/privacy}","received_events_url":"https://api.github.com/users/Pchelolo/received_events","type":"User","site_admin":false},"repo":{"id":37933525,"name":"restbase","full_name":"Pchelolo/restbase","owner":{"login":"Pchelolo","id":814754,"avatar_url":"https://avatars.githubusercontent.com/u/814754?v=3","gravatar_id":"","url":"https://api.github.com/users/Pchelolo","html_url":"https://github.com/Pchelolo","followers_url":"https://api.github.com/users/Pchelolo/followers","following_url":"https://api.github.com/users/Pchelolo/following{/other_user}","gists_url":"https://api.github.com/users/Pchelolo/gists{/gist_id}","starred_url":"https://api.github.com/users/Pchelolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pchelolo/subscriptions","organizations_url":"https://api.github.com/users/Pchelolo/orgs","repos_url":"https://api.github.com/users/Pchelolo/repos","events_url":"https://api.github.com/users/Pchelolo/events{/privacy}","received_events_url":"https://api.github.com/users/Pchelolo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pchelolo/restbase","description":"Distributed storage with REST API & dispatcher for backend services","fork":true,"url":"https://api.github.com/repos/Pchelolo/restbase","forks_url":"https://api.github.com/repos/Pchelolo/restbase/forks","keys_url":"https://api.github.com/repos/Pchelolo/restbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pchelolo/restbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pchelolo/restbase/teams","hooks_url":"https://api.github.com/repos/Pchelolo/restbase/hooks","issue_events_url":"https://api.github.com/repos/Pchelolo/restbase/issues/events{/number}","events_url":"https://api.github.com/repos/Pchelolo/restbase/events","assignees_url":"https://api.github.com/repos/Pchelolo/restbase/assignees{/user}","branches_url":"https://api.github.com/repos/Pchelolo/restbase/branches{/branch}","tags_url":"https://api.github.com/repos/Pchelolo/restbase/tags","blobs_url":"https://api.github.com/repos/Pchelolo/restbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pchelolo/restbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pchelolo/restbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pchelolo/restbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pchelolo/restbase/statuses/{sha}","languages_url":"https://api.github.com/repos/Pchelolo/restbase/languages","stargazers_url":"https://api.github.com/repos/Pchelolo/restbase/stargazers","contributors_url":"https://api.github.com/repos/Pchelolo/restbase/contributors","subscribers_url":"https://api.github.com/repos/Pchelolo/restbase/subscribers","subscription_url":"https://api.github.com/repos/Pchelolo/restbase/subscription","commits_url":"https://api.github.com/repos/Pchelolo/restbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pchelolo/restbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pchelolo/restbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pchelolo/restbase/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pchelolo/restbase/contents/{+path}","compare_url":"https://api.github.com/repos/Pchelolo/restbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pchelolo/restbase/merges","archive_url":"https://api.github.com/repos/Pchelolo/restbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pchelolo/restbase/downloads","issues_url":"https://api.github.com/repos/Pchelolo/restbase/issues{/number}","pulls_url":"https://api.github.com/repos/Pchelolo/restbase/pulls{/number}","milestones_url":"https://api.github.com/repos/Pchelolo/restbase/milestones{/number}","notifications_url":"https://api.github.com/repos/Pchelolo/restbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pchelolo/restbase/labels{/name}","releases_url":"https://api.github.com/repos/Pchelolo/restbase/releases{/id}","deployments_url":"https://api.github.com/repos/Pchelolo/restbase/deployments","created_at":"2015-06-23T17:22:56Z","updated_at":"2016-01-12T00:04:25Z","pushed_at":"2016-11-01T22:02:23Z","git_url":"git://github.com/Pchelolo/restbase.git","ssh_url":"git@github.com:Pchelolo/restbase.git","clone_url":"https://github.com/Pchelolo/restbase.git","svn_url":"https://github.com/Pchelolo/restbase","homepage":"https://www.mediawiki.org/wiki/RESTBase","size":3129,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"wikimedia:master","ref":"master","sha":"aaa74676ae2274da9931fcc646acc4b624f33063","user":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"repo":{"id":19002414,"name":"restbase","full_name":"wikimedia/restbase","owner":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wikimedia/restbase","description":"Distributed storage with REST API & dispatcher for backend services","fork":false,"url":"https://api.github.com/repos/wikimedia/restbase","forks_url":"https://api.github.com/repos/wikimedia/restbase/forks","keys_url":"https://api.github.com/repos/wikimedia/restbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikimedia/restbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikimedia/restbase/teams","hooks_url":"https://api.github.com/repos/wikimedia/restbase/hooks","issue_events_url":"https://api.github.com/repos/wikimedia/restbase/issues/events{/number}","events_url":"https://api.github.com/repos/wikimedia/restbase/events","assignees_url":"https://api.github.com/repos/wikimedia/restbase/assignees{/user}","branches_url":"https://api.github.com/repos/wikimedia/restbase/branches{/branch}","tags_url":"https://api.github.com/repos/wikimedia/restbase/tags","blobs_url":"https://api.github.com/repos/wikimedia/restbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikimedia/restbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikimedia/restbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikimedia/restbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikimedia/restbase/statuses/{sha}","languages_url":"https://api.github.com/repos/wikimedia/restbase/languages","stargazers_url":"https://api.github.com/repos/wikimedia/restbase/stargazers","contributors_url":"https://api.github.com/repos/wikimedia/restbase/contributors","subscribers_url":"https://api.github.com/repos/wikimedia/restbase/subscribers","subscription_url":"https://api.github.com/repos/wikimedia/restbase/subscription","commits_url":"https://api.github.com/repos/wikimedia/restbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikimedia/restbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikimedia/restbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikimedia/restbase/issues/comments{/number}","contents_url":"https://api.github.com/repos/wikimedia/restbase/contents/{+path}","compare_url":"https://api.github.com/repos/wikimedia/restbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikimedia/restbase/merges","archive_url":"https://api.github.com/repos/wikimedia/restbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikimedia/restbase/downloads","issues_url":"https://api.github.com/repos/wikimedia/restbase/issues{/number}","pulls_url":"https://api.github.com/repos/wikimedia/restbase/pulls{/number}","milestones_url":"https://api.github.com/repos/wikimedia/restbase/milestones{/number}","notifications_url":"https://api.github.com/repos/wikimedia/restbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikimedia/restbase/labels{/name}","releases_url":"https://api.github.com/repos/wikimedia/restbase/releases{/id}","deployments_url":"https://api.github.com/repos/wikimedia/restbase/deployments","created_at":"2014-04-21T18:35:00Z","updated_at":"2016-10-24T22:09:46Z","pushed_at":"2016-11-01T22:05:14Z","git_url":"git://github.com/wikimedia/restbase.git","ssh_url":"git@github.com:wikimedia/restbase.git","clone_url":"https://github.com/wikimedia/restbase.git","svn_url":"https://github.com/wikimedia/restbase","homepage":"https://www.mediawiki.org/wiki/RESTBase","size":3295,"stargazers_count":47,"watchers_count":47,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"open_issues_count":7,"forks":34,"open_issues":7,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/699"},"html":{"href":"https://github.com/wikimedia/restbase/pull/699"},"issue":{"href":"https://api.github.com/repos/wikimedia/restbase/issues/699"},"comments":{"href":"https://api.github.com/repos/wikimedia/restbase/issues/699/comments"},"review_comments":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/699/comments"},"review_comment":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/699/commits"},"statuses":{"href":"https://api.github.com/repos/wikimedia/restbase/statuses/76317cccb406145c72ee88ff52c3e5f385b11553"}}}}
{"actor":{"display_login":"d00rman"}}