-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-test-requests.http
47 lines (40 loc) · 1.09 KB
/
api-test-requests.http
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### Request 1: Create an exercise
POST http://localhost:3000/jokes HTTP/1.1
content-type: application/json
{
"category": "Pun",
"setup": "Yesterday, I read an entire book about an immortal dog.",
"delivery": "It was impossible to put down.",
"safe": true,
"recs": 0
}
### Request 2
POST http://localhost:3000/jokes HTTP/1.1
content-type: application/json
{
"category": "Pun",
"setup": "I thought of a joke about trickle down economics.",
"delivery": "But most people wouldn't get it.",
"safe": true,
"recs": 0
}
### Request 3
POST http://localhost:3000/jokes HTTP/1.1
content-type: application/json
{
"category": "Pun",
"setup": "Did you hear about the crime in the parking garage?",
"delivery": "It was wrong on so many levels.",
"safe": true,
"recs": 0
}
### Request 4
PUT http://localhost:3000/jokes/639fbe79bee39114f07dd598 HTTP/1.1
content-type: application/json
{
"category": "Pun",
"setup": "Did you hear about the crime in the parking garage?",
"delivery": "It was wrong on so many levels.",
"safe": true,
"recs": 1
}