From e454a76f602c4385df684488df76ff71b7259e53 Mon Sep 17 00:00:00 2001 From: Spencer Stock <46308524+spencerstock@users.noreply.github.com> Date: Mon, 24 Jun 2019 19:44:23 -0600 Subject: [PATCH 1/3] Update README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 5c27756..aad6713 100644 --- a/README.md +++ b/README.md @@ -71,12 +71,9 @@ books/add Example: 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" From 035a27f99318713b17bef53ec2703faf8c95a436 Mon Sep 17 00:00:00 2001 From: Spencer Stock <46308524+spencerstock@users.noreply.github.com> Date: Mon, 24 Jun 2019 20:19:05 -0600 Subject: [PATCH 2/3] Update README.md --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index aad6713..35186a2 100644 --- a/README.md +++ b/README.md @@ -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) ``` @@ -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: ``` @@ -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: ``` @@ -68,8 +65,7 @@ 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/bybookid/{bookid} Example: ``` From 52f6f56897668fadd021f3976157149191b6cb3f Mon Sep 17 00:00:00 2001 From: Spencer Stock <46308524+spencerstock@users.noreply.github.com> Date: Mon, 24 Jun 2019 20:40:14 -0600 Subject: [PATCH 3/3] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 35186a2..e248e60 100644 --- a/README.md +++ b/README.md @@ -76,4 +76,14 @@ reviews/add/bybookid/{bookid} Example: } ``` +reviews/byreview/{reviewid} (PUT) Example: +``` +{ + "rating": 3, + "review": "changedString", + "user": "string"* +} +``` +*required +