-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtesting.http
More file actions
32 lines (24 loc) · 909 Bytes
/
testing.http
File metadata and controls
32 lines (24 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// retrieves all todo items from database
GET http://localhost:7071/api/ToDo?id= HTTP/1.1
###
// retrieves a specific todo item from database
GET http://localhost:7071/api/ToDo?id=98230fc4-2ce7-4b1f-aad1-dabaf372b76f HTTP/1.1
###
// retrieves an invalid todo item from database
GET http://localhost:7071/api/ToDo?id=gdfsgsf HTTP/1.1
###
// adds a new todo to the database
POST http://localhost:7071/api/ToDo HTTP/1.1
Content-Type: application/json
{"title":"test this sample"}
###
// updates a specific todo item from database
PATCH http://localhost:7071/api/ToDo?id=94319c5c-4a11-47f0-a38b-45dc4807c8bd HTTP/1.1
Content-Type: application/json
{"title":"walk the dog"}
###
// deletes a specific todo item from database
DELETE http://localhost:7071/api/ToDo?id=98230fc4-2ce7-4b1f-aad1-dabaf372b76f HTTP/1.1
###
// deletes all todo items from database
DELETE http://localhost:7071/api/ToDo?id= HTTP/1.1