Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/spencer-stock' into spencer-stock
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerstock committed Jun 24, 2019
2 parents 027cfdb + 89d68a0 commit 3956640
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,57 @@
# oer-bookr-BE
# oer-bookr-BackEnd



### Login
## https://sgs-lambda-bookr.herokuapp.com/oauth/token

Headers:
```
Authorization : Basic bGFtYmRhLWNsaWVudDpsYW1iZGEtc2VjcmV0
Content-Type : application/x-www-form-urlencoded
```
Body (application/x-www-form-urlencoded)
parenthesized parameters used for testing
```
grant_type : password
username : yourUsername (admin)
password : yourPassword (password)
```

Returns:
```
{
"access_token": "ff9803b8-6a3d-4e64-9321-4f34cd84f924",
"token_type": "bearer",
"refresh_token": "9fe8bf45-1f3e-405c-9a35-a1d401f7968a",
"expires_in": 3599,
"scope": "read write trust"
}
```


### Books
## https://sgs-lambda-bookr.herokuapp.com/book/books

Returns:
```
[
{
"author": "string",
"bookid": 0,
"booktitle": "string",
"imageurl": "string",
"license": "string",
"publisher": "string",
"reviews": [
{
"rating": 0,
"review": "string",
"reviewid": 0,
"user": "string"
}
],
"url": "string"
}
]
```

0 comments on commit 3956640

Please sign in to comment.