{"action":"created","comment":{"url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/comments/88550315","pull_request_review_id":9121951,"id":88550315,"diff_hunk":"@@ -15,76 +15,360 @@ const expect        = require('chai').expect;\n const supertest     = require('supertest');\n const server        = require('./../../index');\n const api           = supertest(server);\n+const request       = require('superagent');\n \n const documentData  = require('./data/document-data.js');\n+const userData      = require('./data/user-data.js');\n+\n+const docSeeder     = require('./../../seeders/docSeeder');\n+\n+let adminToken, normalToken1, normalToken2;\n+\n+describe('Document', () => {\n+  before((done) => {\n+    request\n+      .post('http://localhost:8080/api/users/login/')\n+      .send({\n+        username: userData.adminUser.username,\n+        password: userData.adminUser.password\n+      })\n+      .end(function(err, res){\n+        adminToken = res.body.data;\n+        done(err);\n+      });\n+  });\n+\n+  before((done) => {\n+    //userid = 3\n+    request\n+      .post('http://localhost:8080/api/users/login/')\n+      .send({\n+        username: userData.normalUser1.username,\n+        password: userData.normalUser1.password\n+      })\n+      .end(function(err, res){\n+        normalToken1 = res.body.data;\n+        done(err);\n+      });\n+  });\n+\n+  before((done) => {\n+    // userid = 2\n+    request\n+      .post('http://localhost:8080/api/users/login/')\n+      .send({\n+        username: userData.normalUser3.username,\n+        password: userData.normalUser3.password\n+      })\n+      .end(function(err, res){\n+        normalToken2 = res.body.data;\n+        done(err);\n+      });\n+  });\n+\n+  before((done) => {\n+    docSeeder.startSeed();\n+    done();\n+  });\n+\n+  it('Only registered users can create documents', (done) => {\n+    api\n+      .post('/api/documents/')\n+      .send(documentData.documenty)\n+      .expect(403)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Token not provided');\n+        done(err);\n+      });\n+  });\n+\n+  it('All fields must be filled', (done) => {\n+    api\n+      .post('/api/documents/')\n+      .set('x-access-token', normalToken1)\n+      .send(documentData.invalidDocument)\n+      .expect(400)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('All fields must be filled');\n+        done(err);\n+      });\n+  });\n+\n+  it('Registered users can create documents', (done) => {\n+    api\n+      .post('/api/documents/')\n+      .set('x-access-token', normalToken1)\n+      .send(documentData.documentx)\n+      .expect(201)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Document created');\n+        done(err);\n+      });\n+  });\n+\n+  it('Should not allow creation of documents with duplicate titles', (done) => {\n+    api\n+      .post('/api/documents/')\n+      .set('x-access-token', normalToken1)\n+      .send(documentData.documentx)\n+      .expect(409)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('A document wih the title exists');\n+        done(err);\n+      });\n+  });\n \n-xdescribe('Document', () => {\n   it('should have a published by date', (done) => {\n     api\n       .post('/api/documents/')\n-      .send()\n+      .set('x-access-token', normalToken2)\n+      .send(documentData.documenty)\n       .expect(201)\n       .end((err, res) => {\n-        expect(res.message).to.equal('Document created');\n-        expect(res.data).to.have.property('createdAt');\n+        expect(res.body.message).to.equal('Document created');\n+        expect(res.body.data).to.have.property('createdAt');\n+        done(err);\n+      });\n+  });\n+\n+  it('should return all relevant documents belonging to a user', (done) => {\n+    api\n+      .get('/api/users/3/documents/')\n+      .set('x-access-token', normalToken1)\n+      .expect(200)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Documents retrieved');\n+        expect(res.body.data.length).to.equal(7);\n+        done(err);\n+      });\n+  });\n+\n+  it('admin should have access to all relevant documents belonging to a user', (done) => {\n+    api\n+      .get('/api/users/3/documents/')\n+      .set('x-access-token', adminToken)\n+      .expect(200)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Documents retrieved');\n+        expect(res.body.data.length).to.equal(7);\n         done(err);\n       });\n   });\n \n-  it('should return all relevant documents', (done) => {\n+  it('Users with no document should return empty array', (done) => {\n     api\n-      .get('/api/documents/')\n-      .send()\n+      .get('/api/users/4/documents/')\n+      .set('x-access-token', adminToken)\n       .expect(200)\n       .end((err, res) => {\n-        expect(res.message).to.equal();\n-        expect(res.data).to.equal();\n+        expect(res.body.message).to.equal('User doesn\\'t have any document');\n+        expect(res.body.data).to.deep.equal([]);\n+        done(err);\n+      });\n+  });\n+\n+  it('users\\'s shouldn\\'t have access to other user\\'s documents', (done) => {\n+    api\n+      .get('/api/users/3/documents/')\n+      .set('x-access-token', normalToken2)\n+      .expect(403)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('You\\'re not authorised to do this');\n         done(err);\n       });\n   });\n \n-  it('should find a document by its id', (done) => {\n+  it('documents marked private should only be accessible to it\\'s creator', (done) => {\n     api\n       .get('/api/documents/1')\n-      .send()\n+      .set('x-access-token', normalToken2)\n+      .expect(403)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('You\\'re not authorised to access this document');\n+        done(err);\n+      });\n+  });\n+\n+  it('documents marked role should be accessible to users with the same as it\\'s creator', (done) => {\n+    api\n+      .get('/api/documents/2')\n+      .set('x-access-token', normalToken2)\n       .expect(200)\n       .end((err, res) => {\n-        expect(res.message).to.equal('Document found');\n-        expect(res.data).to.equal();\n+        expect(res.body.message).to.equal('Document found');\n         done(err);\n       });\n   });\n \n-  it('should update document attribute', (done) => {\n+  it('documents marked public should be accessible to all users', (done) => {\n     api\n-      .put('/api/documents/1')\n+      .get('/api/documents/8')\n+      .set('x-access-token', normalToken1)\n+      .expect(200)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Document found');\n+        done(err);\n+      });\n+  });\n+\n+  it('admin should be able to get any document', (done) => {\n+    api\n+      .get('/api/documents/12')\n+      .set('x-access-token', adminToken)\n+      .expect(200)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Document found');\n+        done(err);\n+      });\n+  });\n+\n+  it('non-existent documents should return 404', (done) => {\n+    api\n+      .get('/api/documents/13')\n+      .set('x-access-token', adminToken)\n+      .expect(404)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Document doesn\\'t exist');\n+        done(err);\n+      });\n+  });\n+\n+  it('admin should be able to get all the documents', (done) => {\n+    api\n+      .get('/api/documents')\n+      .set('x-access-token', adminToken)\n+      .expect(200)\n+      .end((err, res) => {\n+        expect(res.body.message).to.equal('Documents retreived');\n+        expect(res.body.data.length).to.equal(12);\n+        done(err);\n+      });\n+  });\n+\n+  it('normal users should be able to get some of the documents', (done) => {\n+    api\n+      .get('/api/documents')\n+      .set('x-access-token', normalToken2)\n+      .expect(200)\n+      .end((err, res) => {","path":"tests/server/documents.spec.js","position":254,"original_position":254,"commit_id":"fb7b9867d1412b388d7f00b1f1c78eb523544812","original_commit_id":"fb7b9867d1412b388d7f00b1f1c78eb523544812","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').","created_at":"2016-11-17T21:29:04Z","updated_at":"2016-11-17T21:29:04Z","html_url":"https://github.com/andela-oolutola/document-management-system-api/pull/9#discussion_r88550315","pull_request_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/comments/88550315"},"html":{"href":"https://github.com/andela-oolutola/document-management-system-api/pull/9#discussion_r88550315"},"pull_request":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9","id":94254575,"html_url":"https://github.com/andela-oolutola/document-management-system-api/pull/9","diff_url":"https://github.com/andela-oolutola/document-management-system-api/pull/9.diff","patch_url":"https://github.com/andela-oolutola/document-management-system-api/pull/9.patch","issue_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/9","number":9,"state":"open","locked":false,"title":"Implement document logic","user":{"login":"andela-oolutola","id":20815290,"avatar_url":"https://avatars.githubusercontent.com/u/20815290?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oolutola","html_url":"https://github.com/andela-oolutola","followers_url":"https://api.github.com/users/andela-oolutola/followers","following_url":"https://api.github.com/users/andela-oolutola/following{/other_user}","gists_url":"https://api.github.com/users/andela-oolutola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oolutola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oolutola/subscriptions","organizations_url":"https://api.github.com/users/andela-oolutola/orgs","repos_url":"https://api.github.com/users/andela-oolutola/repos","events_url":"https://api.github.com/users/andela-oolutola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oolutola/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nCreates `/api/documents/` and `/api/users/:uid/documents/` routes and `document` controller to the application.\r\n\r\n### Action points\r\n* Add test to check that only authorized users can access and edit the appropriate resources.\r\n* Add `document` controller\r\n* Add `document` routes to get, update and delete documents.","created_at":"2016-11-17T21:28:52Z","updated_at":"2016-11-17T21:29:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a1ed73c648c93c1f442770b46d6deb4f2cddd92","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9/commits","review_comments_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9/comments","review_comment_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/9/comments","statuses_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/statuses/fb7b9867d1412b388d7f00b1f1c78eb523544812","head":{"label":"andela-oolutola:implement-document-logic","ref":"implement-document-logic","sha":"fb7b9867d1412b388d7f00b1f1c78eb523544812","user":{"login":"andela-oolutola","id":20815290,"avatar_url":"https://avatars.githubusercontent.com/u/20815290?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oolutola","html_url":"https://github.com/andela-oolutola","followers_url":"https://api.github.com/users/andela-oolutola/followers","following_url":"https://api.github.com/users/andela-oolutola/following{/other_user}","gists_url":"https://api.github.com/users/andela-oolutola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oolutola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oolutola/subscriptions","organizations_url":"https://api.github.com/users/andela-oolutola/orgs","repos_url":"https://api.github.com/users/andela-oolutola/repos","events_url":"https://api.github.com/users/andela-oolutola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oolutola/received_events","type":"User","site_admin":false},"repo":{"id":72569461,"name":"document-management-system-api","full_name":"andela-oolutola/document-management-system-api","owner":{"login":"andela-oolutola","id":20815290,"avatar_url":"https://avatars.githubusercontent.com/u/20815290?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oolutola","html_url":"https://github.com/andela-oolutola","followers_url":"https://api.github.com/users/andela-oolutola/followers","following_url":"https://api.github.com/users/andela-oolutola/following{/other_user}","gists_url":"https://api.github.com/users/andela-oolutola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oolutola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oolutola/subscriptions","organizations_url":"https://api.github.com/users/andela-oolutola/orgs","repos_url":"https://api.github.com/users/andela-oolutola/repos","events_url":"https://api.github.com/users/andela-oolutola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oolutola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-oolutola/document-management-system-api","description":null,"fork":false,"url":"https://api.github.com/repos/andela-oolutola/document-management-system-api","forks_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/forks","keys_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/teams","hooks_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/hooks","issue_events_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/events{/number}","events_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/events","assignees_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/assignees{/user}","branches_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/branches{/branch}","tags_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/tags","blobs_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/languages","stargazers_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/stargazers","contributors_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/contributors","subscribers_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/subscribers","subscription_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/subscription","commits_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/contents/{+path}","compare_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/merges","archive_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/downloads","issues_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues{/number}","pulls_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/labels{/name}","releases_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/releases{/id}","deployments_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/deployments","created_at":"2016-11-01T19:30:40Z","updated_at":"2016-11-05T20:09:40Z","pushed_at":"2016-11-17T21:28:52Z","git_url":"git://github.com/andela-oolutola/document-management-system-api.git","ssh_url":"git@github.com:andela-oolutola/document-management-system-api.git","clone_url":"https://github.com/andela-oolutola/document-management-system-api.git","svn_url":"https://github.com/andela-oolutola/document-management-system-api","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela-oolutola:develop","ref":"develop","sha":"b8d0193b09e8d6a0523a856c0782080bc116b4c5","user":{"login":"andela-oolutola","id":20815290,"avatar_url":"https://avatars.githubusercontent.com/u/20815290?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oolutola","html_url":"https://github.com/andela-oolutola","followers_url":"https://api.github.com/users/andela-oolutola/followers","following_url":"https://api.github.com/users/andela-oolutola/following{/other_user}","gists_url":"https://api.github.com/users/andela-oolutola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oolutola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oolutola/subscriptions","organizations_url":"https://api.github.com/users/andela-oolutola/orgs","repos_url":"https://api.github.com/users/andela-oolutola/repos","events_url":"https://api.github.com/users/andela-oolutola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oolutola/received_events","type":"User","site_admin":false},"repo":{"id":72569461,"name":"document-management-system-api","full_name":"andela-oolutola/document-management-system-api","owner":{"login":"andela-oolutola","id":20815290,"avatar_url":"https://avatars.githubusercontent.com/u/20815290?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oolutola","html_url":"https://github.com/andela-oolutola","followers_url":"https://api.github.com/users/andela-oolutola/followers","following_url":"https://api.github.com/users/andela-oolutola/following{/other_user}","gists_url":"https://api.github.com/users/andela-oolutola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oolutola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oolutola/subscriptions","organizations_url":"https://api.github.com/users/andela-oolutola/orgs","repos_url":"https://api.github.com/users/andela-oolutola/repos","events_url":"https://api.github.com/users/andela-oolutola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oolutola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-oolutola/document-management-system-api","description":null,"fork":false,"url":"https://api.github.com/repos/andela-oolutola/document-management-system-api","forks_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/forks","keys_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/teams","hooks_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/hooks","issue_events_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/events{/number}","events_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/events","assignees_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/assignees{/user}","branches_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/branches{/branch}","tags_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/tags","blobs_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/languages","stargazers_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/stargazers","contributors_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/contributors","subscribers_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/subscribers","subscription_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/subscription","commits_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/contents/{+path}","compare_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/merges","archive_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/downloads","issues_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues{/number}","pulls_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/labels{/name}","releases_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/releases{/id}","deployments_url":"https://api.github.com/repos/andela-oolutola/document-management-system-api/deployments","created_at":"2016-11-01T19:30:40Z","updated_at":"2016-11-05T20:09:40Z","pushed_at":"2016-11-17T21:28:52Z","git_url":"git://github.com/andela-oolutola/document-management-system-api.git","ssh_url":"git@github.com:andela-oolutola/document-management-system-api.git","clone_url":"https://github.com/andela-oolutola/document-management-system-api.git","svn_url":"https://github.com/andela-oolutola/document-management-system-api","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9"},"html":{"href":"https://github.com/andela-oolutola/document-management-system-api/pull/9"},"issue":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/9"},"comments":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/andela-oolutola/document-management-system-api/statuses/fb7b9867d1412b388d7f00b1f1c78eb523544812"}}}}
{"actor":{"display_login":"houndci-bot"}}