-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.http
42 lines (32 loc) · 1.17 KB
/
test.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
### Send POST request with json body
POST http://localhost:8080/api/quotes
Content-Type: application/json
{
"author": "Franklin D. Roosevelt",
"text": "The only limit to our realization of tomorrow will be our doubts of today.",
"source": "Speech in Boston, Massachusetts, October 30, 1940"
}
### Send POST request with json body
POST http://localhost:8080/api/quotes
Content-Type: application/json
{
"author": "Winston Churchill",
"text": "Success is not final, failure is not fatal: It is the courage to continue that counts.",
"source": "Speech in the House of Commons, May 23, 1940"
}
### Send request GET DATA
GET http://localhost:8080/api/quotes
### Send request GET ONE DATA
GET http://localhost:8080/api/quotes/2
### Send request DELETE ONE DATA
DELETE http://localhost:8080/api/quotes/2
### Send POST request with json body
PUT http://localhost:8080/api/quotes/2
Content-Type: application/json
{
"author": "Winston Churchill",
"text": "Success is not final, failure is not fatal: It is the courage to continue that counts.",
"source": "Speech in the House of Commons, May 22, 1940"
}
### Send request GET ONE RANDOM DATA
GET http://localhost:8080/api/quotes/random