Skip to content

Commit

Permalink
Merge pull request #63 from scrum-gang/docs
Browse files Browse the repository at this point in the history
Docs
  • Loading branch information
alexH2456 authored Mar 25, 2019
2 parents 877cd4d + 3cdafae commit 91c396e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Authentication - Jobhub

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f193348b2004466ba69f53bec6f9de9a)](https://www.codacy.com/app/alexH2456/authentication?utm_source=github.com&utm_medium=referral&utm_content=scrum-gang/authentication&utm_campaign=Badge_Grade)
[![Build Status](https://travis-ci.com/scrum-gang/authentication.svg?branch=master)](https://travis-ci.com/scrum-gang/authentication)
[![Coverage Status](https://coveralls.io/repos/github/scrum-gang/authentication/badge.svg?branch=master)](https://coveralls.io/github/scrum-gang/authentication?branch=master)

Expand Down
10 changes: 10 additions & 0 deletions doc/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ Returns session token for existing User on succesful login.

```json
{
"user": {
"_id": "[user ID]",
"email": "[email]",
"password": "[hashed password]",
"type": "[user type]",
"verified": true,
"created_at": "[account creation date]",
"updated_at": "[last account update]",
"__v": 0
},
"iat": "[Token issued at]",
"exp": "[Token expiry]",
"token": "[JWT token]"
Expand Down
5 changes: 4 additions & 1 deletion doc/selfGet.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ Returns corresponding user given JWT token.
"email": "[User email]",
"password": "[User password]",
"type": "[User type]",
"verified": true
"verified": true,
"created_at": "[account creation date]",
"updated_at": "[last account update]",
"__v": 0
}
```

Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</style>
</head>
<body>
<h1>👮 Welcome to the Jobhub Authentication Microservice 👮</h1>
<h1>👮 Welcome to the Jo🅱️hu🅱️ Authentication Microservice 👮</h1>
<p>Please consult our <a href='https://github.com/scrum-gang/authentication'>repo</a> for endpoint information.</p>
</body>
</html>

0 comments on commit 91c396e

Please sign in to comment.