From 0536dcd4838072d8cc07b73bd502ae9abcac3771 Mon Sep 17 00:00:00 2001 From: Spencer Stock <46308524+spencerstock@users.noreply.github.com> Date: Wed, 26 Jun 2019 13:20:40 -0600 Subject: [PATCH] Update README.md --- README.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 48f84b8..5f70560 100644 --- a/README.md +++ b/README.md @@ -27,19 +27,14 @@ 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/loginuser -Headers: +Body (application/Json) ``` -Authorization : Basic bGFtYmRhLWNsaWVudDpsYW1iZGEtc2VjcmV0 -Content-Type : application/x-www-form-urlencoded -``` -Body (application/x-www-form-urlencoded) -parenthesized values used for testing -``` -grant_type : password -username : yourUsername (admin) -password : yourPassword (password) +{ +"username" : "yourUsername", +"password" : "yourPassword" +} ``` Returns: