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 25, 2019
2 parents f0d6ddf + 9c6842f commit c6d2897
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# oer-bookr-BackEnd

### Create user

## https://sgs-lambda-bookr.herokuapp.com/createnewuser

Body (application/Json)
```
"username" : "yourUsername"
"password" : "yourPassword"
```

Returns
```
empty []
```
https://sgs-lambda-bookr.herokuapp.com/users/users to list all users (must be admin)


### Login
Expand All @@ -11,7 +26,7 @@ Authorization : Basic bGFtYmRhLWNsaWVudDpsYW1iZGEtc2VjcmV0
Content-Type : application/x-www-form-urlencoded
```
Body (application/x-www-form-urlencoded)
parenthesized parameters used for testing
parenthesized values used for testing
```
grant_type : password
username : yourUsername (admin)
Expand All @@ -31,27 +46,12 @@ Returns:


### 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"
}
]
```
## https://sgs-lambda-bookr.herokuapp.com/swagger-ui.html#/books-controller


### Reviews

## https://sgs-lambda-bookr.herokuapp.com/swagger-ui.html#/reviews-controller


0 comments on commit c6d2897

Please sign in to comment.