{"action":"created","comment":{"url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/comments/49740358","id":49740358,"diff_hunk":"@@ -0,0 +1,556 @@\n+/****************************************************************\n+*Name: DMS API Test.\n+*Description: To test the user's segment of the DMS API\n+*Author: Babalola Maryam\n+*****************************************************************/\n+\n+(function() {\n+  'Use strict';\n+\n+  var jwt = require('jsonwebtoken'),\n+    expect = require('expect.js'),\n+    server = require('./../server.js'),\n+    request = require('supertest')(server),\n+    User = require('./../app/models/user.models'),\n+    role = require('./../app/models/role.models'),\n+    config = require('./../config/config'),\n+    _userSeeders = require('./../seeders/user.seeders.json'),\n+    _roleSeeders = require('./../seeders/role.seeders.json');\n+\n+  describe('Users', function() {\n+    describe('/POST: Validate user login', function() {\n+\n+      beforeEach(function(done) {\n+        //create a new role using content of the role seeder\n+        role.create(_roleSeeders[2]).then(function(Role) {\n+          //create a new user using content of the user seeder\n+          _userSeeders[2].role = Role._id;\n+          User.create(_userSeeders[2]).then(function() {\n+            done();\n+          }, function(err) {\n+            console.log(err);\n+            done();\n+          });\n+        }, function(err) {\n+          console.log(err);\n+          done();\n+        });\n+      });\n+\n+      afterEach(function(done) {\n+        //delete the user from the database\n+        User.remove({}).exec(function() {\n+          //delete role from the database\n+          role.remove({}).exec(function(err) {\n+            if (err) {\n+              console.log(err);\n+            }\n+            done();\n+          });\n+        });\n+      });\n+\n+      it('should connect to root', function(done) {\n+        request.get('/')\n+          .expect(200);\n+        done();\n+      });\n+\n+      it('verifies that user logs in with correct password', function(done) {\n+        request.post('/api/users/login')\n+          .send({\n+            userName: _userSeeders[2].userName,\n+            password: 'me'\n+          })\n+          .expect(404)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(404);\n+            expect(res.body.success).to.eql(false);\n+            expect(res.body.message).to.eql\n+              ('Authentication failed. Wrong password');\n+            done();\n+          });\n+      });\n+\n+      it('verifies that user logs in with correct userName', function(done) {\n+        request.post('/api/users/login')\n+          .send({\n+            userName: 'myName',\n+            password: _userSeeders[2].password\n+          })\n+          .expect(404)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(404);\n+            expect(res.body.success).to.eql(false);\n+            expect(res.body.message).to.eql\n+              ('Authentication failed. User not found');\n+            done();\n+          });\n+      });\n+\n+      it('should login new users', function(done) {\n+        request.post('/api/users/login')\n+          .send({\n+            userName: _userSeeders[2].userName,\n+            password: _userSeeders[2].password\n+          })\n+          .expect(200)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(200);\n+            expect(res.body.success).to.eql(true);\n+            expect(res.body.message).to.eql('Successfully logged in');\n+            expect(res.body.message).to.not.be.empty();\n+            done();\n+          });\n+      });\n+    });\n+\n+    describe('/POST: Create new users', function() {\n+      beforeEach(function(done) {\n+        //create a new role using content of the role seeder\n+        role.create(_roleSeeders[1]).then(function(Role) {\n+          _userSeeders[1].role = Role._id;\n+          //create a new user using content of the user seeder\n+          User.create(_userSeeders[1]).then(function() {\n+            done();\n+          }, function(err) {\n+            console.log(err);\n+            done();\n+          });\n+        }, function(err) {\n+          console.log(err);\n+          done();\n+        });\n+      });\n+\n+      afterEach(function(done) {\n+        //delete user from the database\n+        User.remove({}).exec(function() {\n+          //delete roles from the database\n+          role.remove({}).exec(function(err) {\n+            if (err) {\n+              console.log(err);\n+              done();\n+            }\n+            console.log('Removed');\n+            done();\n+          });\n+        });\n+      });\n+\n+      it('create a new user', function(done) {\n+        _userSeeders[0].role = 'Manager';\n+        request.post('/api/users')\n+          .send({\n+            firstName: _userSeeders[0].name.firstName,\n+            lastName: _userSeeders[0].name.lastName,\n+            userName: _userSeeders[0].userName,\n+            password: _userSeeders[0].password,\n+            email: _userSeeders[0].email,\n+            role: _userSeeders[0].role\n+          })\n+          .expect(200)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(200);\n+            expect(res.body.success).to.eql(true);\n+            expect(res.body.message).to.eql('User Successfully created!');\n+            done();\n+          });\n+      });\n+\n+      it('Does not create a user without a valid role', function(done) {\n+        request.post('/api/users')\n+          .send({\n+            firstName: _userSeeders[1].name.firstName,\n+            lastName: _userSeeders[1].name.lastName,\n+            userName: _userSeeders[1].userName,\n+            password: _userSeeders[1].password,\n+            email: _userSeeders[1].email,\n+            role: 'Owner'\n+          })\n+          .expect(400)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(400);\n+            expect(res.body.success).to.eql(false);\n+            expect(res.body.message).to.eql('Role not found. Create first');\n+            done();\n+          });\n+      });\n+\n+      it('Does not create a user without a role', function(done) {\n+        request.post('/api/users')\n+          .send({\n+            firstName: _userSeeders[1].name.firstName,\n+            lastName: _userSeeders[1].name.lastName,\n+            userName: _userSeeders[1].userName,\n+            password: _userSeeders[1].password,\n+            email: _userSeeders[1].email,\n+          })\n+          .expect(400)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(400);\n+            expect(res.body.success).to.eql(false);\n+            expect(res.body.message).to.eql('Role not found. Create first');\n+            done();\n+          });\n+      });\n+\n+      it('creates unique users', function(done) {\n+        _userSeeders[1].role = 'Manager';\n+        request.post('/api/users/')\n+          .send({\n+            firstName: _userSeeders[1].name.firstName,\n+            lastName: _userSeeders[1].name.lastName,\n+            userName: _userSeeders[1].userName,\n+            password: _userSeeders[1].password,\n+            email: _userSeeders[1].email,\n+            role: _userSeeders[1].role\n+          })\n+          .expect(409)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(409);\n+            expect(res.body.success).to.eql(false);\n+            expect(res.body.message).to.eql('User already exists!');\n+            done();\n+          });\n+      });\n+\n+      it('checks for before creating firstName and lastName', function(done) {\n+        _userSeeders[2].role = 'Manager';\n+        request.post('/api/users')\n+          .send({\n+            userName: _userSeeders[2].userName,\n+            password: _userSeeders[2].password,\n+            email: _userSeeders[2].email,\n+            role: _userSeeders[2].role\n+          })\n+          .expect(406)\n+          .end(function(err, res) {\n+            expect(res.status).to.be(406);\n+            expect(res.body.success).to.eql(false);\n+            expect(res.body.message).to.eql\n+              ('Please enter your firstName and lastName');\n+            done();\n+          });\n+      });\n+\n+    });\n+\n+\n+    describe('/GET: Get all users', function() {\n+      var userId,\n+        userToken;\n+\n+      beforeEach(function(done) {\n+        //create a new role using content of the role seeder\n+        role.create(_roleSeeders[2]).then(function(Role) {\n+          _userSeeders[2].role = Role._id;\n+          //create a new user using content of the user seeder\n+          User.create(_userSeeders[2]).then(function(users) {\n+            userToken = jwt.sign(users, config.secret, {\n+              expiresInMinutes: 1440\n+            });\n+            userId = users._id;\n+            done();\n+          }, function(err) {\n+            console.log(err);\n+            done();\n+          });\n+        }, function(err) {\n+          console.log(err);\n+          done();\n+        });\n+      });\n+\n+      afterEach(function(done) {","path":"spec/userTest.spec.js","position":265,"original_position":265,"commit_id":"0d4911aedeae06f037633b25d0b5c24f938f56ca","original_commit_id":"0d4911aedeae06f037633b25d0b5c24f938f56ca","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'afterEach' is not defined.","created_at":"2016-01-14T15:34:59Z","updated_at":"2016-01-14T15:34:59Z","html_url":"https://github.com/andela-mbabalola/Document-Management-System-API/pull/1#discussion_r49740358","pull_request_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/comments/49740358"},"html":{"href":"https://github.com/andela-mbabalola/Document-Management-System-API/pull/1#discussion_r49740358"},"pull_request":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1","id":55574305,"html_url":"https://github.com/andela-mbabalola/Document-Management-System-API/pull/1","diff_url":"https://github.com/andela-mbabalola/Document-Management-System-API/pull/1.diff","patch_url":"https://github.com/andela-mbabalola/Document-Management-System-API/pull/1.patch","issue_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/1","number":1,"state":"open","locked":false,"title":"Development","user":{"login":"andela-mbabalola","id":15085733,"avatar_url":"https://avatars.githubusercontent.com/u/15085733?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mbabalola","html_url":"https://github.com/andela-mbabalola","followers_url":"https://api.github.com/users/andela-mbabalola/followers","following_url":"https://api.github.com/users/andela-mbabalola/following{/other_user}","gists_url":"https://api.github.com/users/andela-mbabalola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mbabalola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mbabalola/subscriptions","organizations_url":"https://api.github.com/users/andela-mbabalola/orgs","repos_url":"https://api.github.com/users/andela-mbabalola/repos","events_url":"https://api.github.com/users/andela-mbabalola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mbabalola/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-10T21:05:53Z","updated_at":"2016-01-14T15:34:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a872f78f6cb8e10b835cfd6ec1ddf867e2c1a93","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/1/comments","statuses_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/statuses/0d4911aedeae06f037633b25d0b5c24f938f56ca","head":{"label":"andela-mbabalola:development","ref":"development","sha":"0d4911aedeae06f037633b25d0b5c24f938f56ca","user":{"login":"andela-mbabalola","id":15085733,"avatar_url":"https://avatars.githubusercontent.com/u/15085733?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mbabalola","html_url":"https://github.com/andela-mbabalola","followers_url":"https://api.github.com/users/andela-mbabalola/followers","following_url":"https://api.github.com/users/andela-mbabalola/following{/other_user}","gists_url":"https://api.github.com/users/andela-mbabalola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mbabalola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mbabalola/subscriptions","organizations_url":"https://api.github.com/users/andela-mbabalola/orgs","repos_url":"https://api.github.com/users/andela-mbabalola/repos","events_url":"https://api.github.com/users/andela-mbabalola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mbabalola/received_events","type":"User","site_admin":false},"repo":{"id":47272363,"name":"Document-Management-System-API","full_name":"andela-mbabalola/Document-Management-System-API","owner":{"login":"andela-mbabalola","id":15085733,"avatar_url":"https://avatars.githubusercontent.com/u/15085733?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mbabalola","html_url":"https://github.com/andela-mbabalola","followers_url":"https://api.github.com/users/andela-mbabalola/followers","following_url":"https://api.github.com/users/andela-mbabalola/following{/other_user}","gists_url":"https://api.github.com/users/andela-mbabalola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mbabalola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mbabalola/subscriptions","organizations_url":"https://api.github.com/users/andela-mbabalola/orgs","repos_url":"https://api.github.com/users/andela-mbabalola/repos","events_url":"https://api.github.com/users/andela-mbabalola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mbabalola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-mbabalola/Document-Management-System-API","description":"","fork":false,"url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API","forks_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/forks","keys_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/teams","hooks_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/hooks","issue_events_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/events{/number}","events_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/events","assignees_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/assignees{/user}","branches_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/branches{/branch}","tags_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/tags","blobs_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/languages","stargazers_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/stargazers","contributors_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/contributors","subscribers_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/subscribers","subscription_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/subscription","commits_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/contents/{+path}","compare_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/merges","archive_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/downloads","issues_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues{/number}","pulls_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/labels{/name}","releases_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/releases{/id}","created_at":"2015-12-02T16:08:27Z","updated_at":"2015-12-02T16:08:27Z","pushed_at":"2016-01-14T15:34:43Z","git_url":"git://github.com/andela-mbabalola/Document-Management-System-API.git","ssh_url":"git@github.com:andela-mbabalola/Document-Management-System-API.git","clone_url":"https://github.com/andela-mbabalola/Document-Management-System-API.git","svn_url":"https://github.com/andela-mbabalola/Document-Management-System-API","homepage":null,"size":4607,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"base":{"label":"andela-mbabalola:master","ref":"master","sha":"bd41a29871e6de2a9c3cd0d692e2ac833c008b77","user":{"login":"andela-mbabalola","id":15085733,"avatar_url":"https://avatars.githubusercontent.com/u/15085733?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mbabalola","html_url":"https://github.com/andela-mbabalola","followers_url":"https://api.github.com/users/andela-mbabalola/followers","following_url":"https://api.github.com/users/andela-mbabalola/following{/other_user}","gists_url":"https://api.github.com/users/andela-mbabalola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mbabalola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mbabalola/subscriptions","organizations_url":"https://api.github.com/users/andela-mbabalola/orgs","repos_url":"https://api.github.com/users/andela-mbabalola/repos","events_url":"https://api.github.com/users/andela-mbabalola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mbabalola/received_events","type":"User","site_admin":false},"repo":{"id":47272363,"name":"Document-Management-System-API","full_name":"andela-mbabalola/Document-Management-System-API","owner":{"login":"andela-mbabalola","id":15085733,"avatar_url":"https://avatars.githubusercontent.com/u/15085733?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mbabalola","html_url":"https://github.com/andela-mbabalola","followers_url":"https://api.github.com/users/andela-mbabalola/followers","following_url":"https://api.github.com/users/andela-mbabalola/following{/other_user}","gists_url":"https://api.github.com/users/andela-mbabalola/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mbabalola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mbabalola/subscriptions","organizations_url":"https://api.github.com/users/andela-mbabalola/orgs","repos_url":"https://api.github.com/users/andela-mbabalola/repos","events_url":"https://api.github.com/users/andela-mbabalola/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mbabalola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-mbabalola/Document-Management-System-API","description":"","fork":false,"url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API","forks_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/forks","keys_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/teams","hooks_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/hooks","issue_events_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/events{/number}","events_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/events","assignees_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/assignees{/user}","branches_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/branches{/branch}","tags_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/tags","blobs_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/languages","stargazers_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/stargazers","contributors_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/contributors","subscribers_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/subscribers","subscription_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/subscription","commits_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/contents/{+path}","compare_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/merges","archive_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/downloads","issues_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues{/number}","pulls_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/labels{/name}","releases_url":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/releases{/id}","created_at":"2015-12-02T16:08:27Z","updated_at":"2015-12-02T16:08:27Z","pushed_at":"2016-01-14T15:34:43Z","git_url":"git://github.com/andela-mbabalola/Document-Management-System-API.git","ssh_url":"git@github.com:andela-mbabalola/Document-Management-System-API.git","clone_url":"https://github.com/andela-mbabalola/Document-Management-System-API.git","svn_url":"https://github.com/andela-mbabalola/Document-Management-System-API","homepage":null,"size":4607,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1"},"html":{"href":"https://github.com/andela-mbabalola/Document-Management-System-API/pull/1"},"issue":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/1"},"comments":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andela-mbabalola/Document-Management-System-API/statuses/0d4911aedeae06f037633b25d0b5c24f938f56ca"}}}}