diff --git a/request.rest b/request.rest deleted file mode 100644 index e7f05c0..0000000 --- a/request.rest +++ /dev/null @@ -1,23 +0,0 @@ -GET http://localhost:300/user - - -### - -POST http://localhost:300/user -Content-Type: application/json - -{ - "name" : "kyle" , - "password" : "password" -} - -### - -POST http://localhost:300/user/login -Content-Type: application/json - -{ - "name" : "kyle" , - "password" : "password" -} - diff --git a/server/request.rest b/server/request.rest new file mode 100644 index 0000000..072acce --- /dev/null +++ b/server/request.rest @@ -0,0 +1,25 @@ +GET http://localhost:3000/posts Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSmltIiwiaWF0IjoxNTY4NzU5ODEyLCJleHAiOjE1Njg3NTk4Mjd9.0i6Im2gKz7jj8wM7aZZzOPaBS_xHoZWAqBwnldn-lQQ + +### + +DELETE http://localhost:4000/logout Content-Type: application/json + +{ +"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSmltIiwiaWF0IjoxNTY4NzU5OTIyfQ.RT6wszuCeFLwC_6ksmNMIELxiC5s-uRivfRxyZof5ag" +} + +### + +POST http://localhost:4000/token Content-Type: application/json + +{ +"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSmltIiwiaWF0IjoxNTY4NzU5OTIyfQ.RT6wszuCeFLwC_6ksmNMIELxiC5s-uRivfRxyZof5ag" +} + +### + +POST http://localhost:4000/login Content-Type: application/json + +{ +"username": "Jim" +} \ No newline at end of file