Skip to content

Commit

Permalink
remove and add
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanieh-Sadeghi committed Oct 27, 2023
1 parent bc152de commit 435e0e5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
23 changes: 0 additions & 23 deletions request.rest

This file was deleted.

25 changes: 25 additions & 0 deletions server/request.rest
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 435e0e5

Please sign in to comment.