From bb5c7b9c57c669b51cde0e3adce0b6ff5357024e Mon Sep 17 00:00:00 2001 From: Spencer Stock <46308524+spencerstock@users.noreply.github.com> Date: Mon, 24 Jun 2019 18:22:06 -0600 Subject: [PATCH 1/2] Update README.md --- README.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 9193717..e879919 100644 --- a/README.md +++ b/README.md @@ -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 ### Login @@ -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) @@ -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 + + From 9c6842f759e444f068afe93aa15e0a1bb2465b92 Mon Sep 17 00:00:00 2001 From: Spencer Stock <46308524+spencerstock@users.noreply.github.com> Date: Mon, 24 Jun 2019 18:22:41 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e879919..ffa8c91 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Returns ``` empty [] ``` -https://sgs-lambda-bookr.herokuapp.com/users/users to list all users +https://sgs-lambda-bookr.herokuapp.com/users/users to list all users (must be admin) ### Login