-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtest_main.http
49 lines (39 loc) · 839 Bytes
/
test_main.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
48
49
# curl -X 'POST'
# 'http://localhost:8000/tasks/'
# -H 'accept: application/json'
# -H 'Content-Type: application/json'
# -d '{
# "title": "Example todo title",
# "owner_id": 1
#}'
POST http://localhost:8000/tasks/
accept: application/json
Content-Type: application/json
{
"title": "Example todo title",
"owner_id": 1
}
###
# curl -X 'POST'
# 'http://localhost:8000/users/'
# -H 'accept: application/json'
# -H 'Content-Type: application/json'
# -d '{
# "email": "test@test.com",
# "password": "password"
#}'
POST http://localhost:8000/users/
accept: application/json
Content-Type: application/json
{
"email": "test1@test.com",
"password": "password"
}
###
# Test your FastAPI endpoints
GET http://127.0.0.1:8000/
Accept: application/json
###
GET http://127.0.0.1:8000/hello/User
Accept: application/json
###