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 15c033d + 52f6f56 commit dcdabc0
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

### Create user

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

Body (application/Json)
```
Expand All @@ -20,8 +19,7 @@ https://sgs-lambda-bookr.herokuapp.com/users/users to list all users (must be ad

### Login

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

Headers:
```
Expand Down Expand Up @@ -50,8 +48,7 @@ Returns:

### Books

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

books/add Example:
```
Expand All @@ -68,19 +65,25 @@ books/add Example:

### Reviews

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

reviews/add Example:
reviews/add/bybookid/{bookid} Example:
```
{
"book": {
"bookid": 10,
},
"rating": 4,
"review": "string",
"user": "string"
}
```

reviews/byreview/{reviewid} (PUT) Example:
```
{
"rating": 3,
"review": "changedString",
"user": "string"*
}
```
*required


0 comments on commit dcdabc0

Please sign in to comment.