{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/comments/34604279","id":34604279,"diff_hunk":"@@ -0,0 +1,294 @@\n+// Copyright (c) Jupyter Development Team.\n+// Distributed under the terms of the Modified BSD License.\n+\n+import utils = require('./utils')\n+import kernel = require('./kernel')\n+\n+import Signal = phosphor.core.Signal;\n+import emit = phosphor.core.emit;\n+import IAjaxSuccess = utils.IAjaxSuccess;\n+import IAjaxError = utils.IAjaxError;\n+\n+\n+/**\n+ * Notebook Identification specification.\n+ */\n+export\n+interface INotebookId {\n+  path: string;\n+};\n+\n+\n+/**\n+ * Session Identification specification.\n+ */\n+export\n+interface ISessionId {\n+  id: string;\n+  notebook: INotebookId;\n+  kernel: kernel.IKernelId;\n+};\n+\n+\n+/**\n+ * Session initialization options.\n+ */\n+export\n+interface ISessionOptions {\n+  notebookPath: string;\n+  kernelName: string;\n+  baseUrl: string;\n+  wsUrl: string;\n+};\n+\n+\n+/**\n+ * Session object for accessing the session REST api. The session\n+ * should be used to start kernels and then shut them down -- for\n+ * all other operations, the kernel object should be used.\n+ **/\n+export \n+class Session {\n+\n+  static statusChanged = new Signal<Session, string>();\n+\n+  /**\n+   * GET /api/sessions\n+   *\n+   * Get a list of the current sessions.\n+   *\n+   */\n+  static list(sessionServiceUrl: string): Promise<ISessionId[]> {\n+    return utils.ajaxRequest(sessionServiceUrl, {\n+      method: \"GET\",\n+      dataType: \"json\"\n+    }).then((success: IAjaxSuccess): ISessionId[] => {\n+      if (success.xhr.status == 200) {\n+        if (!Array.isArray(success.data)) {\n+          throw Error('Invalid Session list');\n+        }\n+        for (var i = 0; i < success.data.length(); i++) {\n+          validateSessionId(success.data[i]);\n+        }\n+        return success.data;\n+      }\n+      throw Error('Invalid Status: ' + success.xhr.status);\n+    });\n+  }\n+\n+  /**\n+   * Construct a new session.\n+   */\n+  constructor(options: ISessionOptions){\n+    this._notebookModel = {\n+      path: options.notebookPath\n+    };\n+    this._kernelModel = {\n+      id: null,\n+      name: options.kernelName\n+    };\n+\n+    this._baseUrl = options.baseUrl;\n+    this._wsUrl = options.wsUrl;\n+    this._sessionServiceUrl = utils.urlJoinEncode(this._baseUrl, \n+                                                  'api/sessions');\n+  }\n+\n+  /**\n+   * Get the session kernel object.\n+  */\n+  get kernel() : kernel.Kernel {\n+    return this._kernel;\n+  }\n+\n+  /**\n+   * POST /api/sessions\n+   *\n+   * Start a new session. This function can only executed once.\n+   *\n+   */\n+  start(): Promise<void> {\n+    return utils.ajaxRequest(this._sessionServiceUrl, {\n+      method: \"POST\",\n+      dataType: \"json\",\n+      data: JSON.stringify(this._model),\n+      contentType: 'application/json'\n+    }).then((success: IAjaxSuccess) => {\n+      if (success.xhr.status !== 201) {\n+        throw Error('Invalid response');\n+      }\n+      validateSessionId(success.data);\n+      this._updateModel(success.data);\n+      if (this._kernel) {\n+        this._kernel.name = this._kernelModel.name;\n+      } else {\n+        var kernelServiceUrl = utils.urlPathJoin(this._baseUrl, \"api/kernels\");\n+        this._kernel = new kernel.Kernel(kernelServiceUrl, this._wsUrl,\n+                                         this._kernelModel.name);\n+      }\n+      this._kernel.start(success.data.kernel);\n+      this._handleStatus('kernelCreated');\n+    }, (error: IAjaxError) => {\n+      this._handleStatus('kernelDead');\n+    });\n+  }\n+\n+  /**\n+   * GET /api/sessions/[:session_id]\n+   *\n+   * Get information about a session.\n+   *\n+   */\n+  getInfo(): Promise<ISessionId> {\n+    return utils.ajaxRequest(this._sessionUrl, {\n+      method: \"GET\",\n+      dataType: \"json\"\n+    }).then((success: IAjaxSuccess): ISessionId => {\n+      if (success.xhr.status !== 200) {\n+        throw Error('Invalid response');\n+      }\n+      validateSessionId(success.data);\n+      return success.data;\n+    });\n+  }\n+\n+  /**\n+   * PATCH /api/sessions/[:session_id]\n+   *\n+   * Rename or move a notebook. If the given name or path are\n+   * undefined, then they will not be changed.\n+   *\n+   */\n+  renameNotebook(path: string): Promise<void> {\n+    if (path !== undefined) {\n+    this._notebookModel.path = path;\n+    }\n+    return utils.ajaxRequest(this._sessionUrl, {\n+      method: \"PATCH\",\n+      dataType: \"json\",\n+      contentType: 'application/json',\n+      data: JSON.stringify(this._model)\n+    }).then((success: IAjaxSuccess) => {\n+      if (success.xhr.status !== 200) {\n+        throw Error('Invalid response');\n+      }\n+      validateSessionId(success.data);\n+    });\n+  }\n+\n+  /**\n+   * DELETE /api/sessions/[:session_id]\n+   *\n+   * Kill the kernel and shutdown the session.\n+   *\n+   */\n+  delete(): Promise<void> {\n+    if (this._kernel) {\n+      this._handleStatus('kernelKilled');\n+      this._kernel.close();\n+    }\n+    return utils.ajaxRequest(this._sessionUrl, {\n+      method: \"DELETE\",\n+      dataType: \"json\"\n+    }).then((success: IAjaxSuccess) => {\n+      if (success.xhr.status !== 204) {\n+        throw Error('Invalid response');\n+      }\n+      validateSessionId(success.data);\n+    });\n+  }\n+\n+  /**\n+   * Restart the session by deleting it and the starting it fresh.\n+   */\n+  restart(options: ISessionOptions): Promise<void> {\n+    return this.delete().then(this.start).catch(this.start).then(() => {\n+      if (options && options.notebookPath) {\n+        this._notebookModel.path = options.notebookPath;\n+      }\n+      if (options && options.kernelName) {\n+        this._kernelModel.name = options.kernelName;\n+      }\n+      this._kernelModel.id = null;\n+    })\n+  }\n+\n+  /**\n+   * Get the data model for the session, which includes the notebook path\n+   * and kernel (name and id).\n+   *\n+   */\n+  private get _model(): ISessionId {\n+    return {\n+      id: this._id,\n+      notebook: this._notebookModel,\n+      kernel: this._kernelModel\n+    };\n+  }\n+\n+  /**\n+   * Update the data model from the given JSON object, which should\n+   * have attributes of `id`, `notebook`, and/or `kernel`. If\n+   * provided, the notebook data must include name and path, and the\n+   * kernel data must include name and id.\n+   *\n+   */\n+  private _updateModel(data: ISessionId): void {\n+    if (data && data.id) {\n+      this._id = data.id;\n+      this._sessionUrl = utils.urlJoinEncode(this._sessionServiceUrl,\n+                                             this._id);\n+    }\n+    if (data && data.notebook) {\n+      this._notebookModel.path = data.notebook.path;\n+    }\n+    if (data && data.kernel) {\n+      this._kernelModel.name = data.kernel.name;\n+      this._kernelModel.id = data.kernel.id;\n+    }\n+  }\n+\n+  /**\n+   * Handle a Session status change.\n+   */\n+  private _handleStatus(status: string) {\n+    emit(this, Session.statusChanged, status);\n+    console.log('Session: ' + status + ' (' + this._id + ')');","path":"src/session.ts","position":247,"original_position":256,"commit_id":"c5c69e0820744a801ba0581c9454befaa7c1f9d6","original_commit_id":"05f5eb2b60edd6a682927d28aa94a4a5217d2bf7","user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"body":"Great ! Let's think about using this at some point !","created_at":"2015-07-14T18:47:32Z","updated_at":"2015-07-14T18:47:32Z","html_url":"https://github.com/jupyter/phosphor-notebook/pull/4#discussion_r34604279","pull_request_url":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/comments/34604279"},"html":{"href":"https://github.com/jupyter/phosphor-notebook/pull/4#discussion_r34604279"},"pull_request":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4","id":39828248,"html_url":"https://github.com/jupyter/phosphor-notebook/pull/4","diff_url":"https://github.com/jupyter/phosphor-notebook/pull/4.diff","patch_url":"https://github.com/jupyter/phosphor-notebook/pull/4.patch","issue_url":"https://api.github.com/repos/jupyter/phosphor-notebook/issues/4","number":4,"state":"open","locked":false,"title":"Add Session","user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"body":"\r\nTo view the REST API:\r\n\r\n- Go to http://petstore.swagger.io/#/\r\n- Put this in the url box in the upper right:\r\nhttps://raw.githubusercontent.com/jasongrout/notebook/swagger/notebook/services/api/api.yaml\r\n\r\n","created_at":"2015-07-13T16:08:15Z","updated_at":"2015-07-14T18:47:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18b9d8444ae8eba40919118a12e61ef97ed7f536","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/phosphor-notebook/issues/4/comments","statuses_url":"https://api.github.com/repos/jupyter/phosphor-notebook/statuses/c5c69e0820744a801ba0581c9454befaa7c1f9d6","head":{"label":"blink1073:session-ts","ref":"session-ts","sha":"c5c69e0820744a801ba0581c9454befaa7c1f9d6","user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"repo":{"id":38313630,"name":"phosphor-notebook-1","full_name":"blink1073/phosphor-notebook-1","owner":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blink1073/phosphor-notebook-1","description":"","fork":true,"url":"https://api.github.com/repos/blink1073/phosphor-notebook-1","forks_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/forks","keys_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/teams","hooks_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/hooks","issue_events_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/issues/events{/number}","events_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/events","assignees_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/assignees{/user}","branches_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/branches{/branch}","tags_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/tags","blobs_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/statuses/{sha}","languages_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/languages","stargazers_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/stargazers","contributors_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/contributors","subscribers_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/subscribers","subscription_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/subscription","commits_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/contents/{+path}","compare_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/merges","archive_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/downloads","issues_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/issues{/number}","pulls_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/pulls{/number}","milestones_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/milestones{/number}","notifications_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/labels{/name}","releases_url":"https://api.github.com/repos/blink1073/phosphor-notebook-1/releases{/id}","created_at":"2015-06-30T14:23:36Z","updated_at":"2015-06-30T14:23:36Z","pushed_at":"2015-07-14T18:35:49Z","git_url":"git://github.com/blink1073/phosphor-notebook-1.git","ssh_url":"git@github.com:blink1073/phosphor-notebook-1.git","clone_url":"https://github.com/blink1073/phosphor-notebook-1.git","svn_url":"https://github.com/blink1073/phosphor-notebook-1","homepage":null,"size":371,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"jupyter:master","ref":"master","sha":"2f7ca4b14a04238810db9a4ddcd91dfb1c61bd00","user":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"repo":{"id":38249514,"name":"phosphor-notebook","full_name":"jupyter/phosphor-notebook","owner":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter/phosphor-notebook","description":"","fork":false,"url":"https://api.github.com/repos/jupyter/phosphor-notebook","forks_url":"https://api.github.com/repos/jupyter/phosphor-notebook/forks","keys_url":"https://api.github.com/repos/jupyter/phosphor-notebook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter/phosphor-notebook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter/phosphor-notebook/teams","hooks_url":"https://api.github.com/repos/jupyter/phosphor-notebook/hooks","issue_events_url":"https://api.github.com/repos/jupyter/phosphor-notebook/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter/phosphor-notebook/events","assignees_url":"https://api.github.com/repos/jupyter/phosphor-notebook/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter/phosphor-notebook/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter/phosphor-notebook/tags","blobs_url":"https://api.github.com/repos/jupyter/phosphor-notebook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter/phosphor-notebook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter/phosphor-notebook/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter/phosphor-notebook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter/phosphor-notebook/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter/phosphor-notebook/languages","stargazers_url":"https://api.github.com/repos/jupyter/phosphor-notebook/stargazers","contributors_url":"https://api.github.com/repos/jupyter/phosphor-notebook/contributors","subscribers_url":"https://api.github.com/repos/jupyter/phosphor-notebook/subscribers","subscription_url":"https://api.github.com/repos/jupyter/phosphor-notebook/subscription","commits_url":"https://api.github.com/repos/jupyter/phosphor-notebook/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter/phosphor-notebook/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter/phosphor-notebook/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter/phosphor-notebook/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter/phosphor-notebook/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter/phosphor-notebook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter/phosphor-notebook/merges","archive_url":"https://api.github.com/repos/jupyter/phosphor-notebook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter/phosphor-notebook/downloads","issues_url":"https://api.github.com/repos/jupyter/phosphor-notebook/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter/phosphor-notebook/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter/phosphor-notebook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter/phosphor-notebook/labels{/name}","releases_url":"https://api.github.com/repos/jupyter/phosphor-notebook/releases{/id}","created_at":"2015-06-29T13:37:35Z","updated_at":"2015-07-11T18:28:24Z","pushed_at":"2015-07-14T18:35:49Z","git_url":"git://github.com/jupyter/phosphor-notebook.git","ssh_url":"git@github.com:jupyter/phosphor-notebook.git","clone_url":"https://github.com/jupyter/phosphor-notebook.git","svn_url":"https://github.com/jupyter/phosphor-notebook","homepage":null,"size":530,"stargazers_count":4,"watchers_count":4,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4"},"html":{"href":"https://github.com/jupyter/phosphor-notebook/pull/4"},"issue":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/issues/4"},"comments":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/phosphor-notebook/statuses/c5c69e0820744a801ba0581c9454befaa7c1f9d6"}}}}