Skip to content

Commit

Permalink
Added todo.http file
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Nov 12, 2022
1 parent cb98a17 commit add0a64
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Requests/todo.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Get Todos
@token = <put JWT token here>

GET http://localhost:5000/todos
Authorization: Bearer {{token}}

### POST Todo

POST http://localhost:5000/todos
Authorization: Bearer {{token}}
Content-Type: application/json

{
"title": "Get a haircut"
}

### DELETE Todo
DELETE http://localhost:5000/todos/1
Authorization: Bearer {{token}}

0 comments on commit add0a64

Please sign in to comment.