-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathReference.txt
62 lines (43 loc) · 881 Bytes
/
Reference.txt
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
50
51
52
53
54
55
56
57
58
59
60
61
62
ALL GET Type Methods
====================
localhost:8090/myapp/get/allEmps
http://localhost:8090/myapp/get/allEmpException1
localhost:8090/myapp/get/emp/id/123
======================
POST Method
localhost:8090/createEmp
{
"empId": 13,
"firstName": "DD",
"lastName": "Mishra"
}
localhost:8090/saveEmp
x-www-form-urlencoded
id=13
fName=John
lName=Abraham
PUT Method
==========
http://localhost:8090/updateEmp
{
"empId": 13,
"firstName": "DD",
"lastName": "Mishra"
}
PATCH Method
============
http://localhost:8090/updatePartialEmp?id=13&login=DD
DELETE Method
=============
http://localhost:8090/deleteEmp/13
File Upload
===========
http://localhost:8090/singleFile
form-data
file : <file path>
http://localhost:8090/multipleFiles
file : mango.jpg
file : banana.jpg
References
How to use tags
https://fastapi.tiangolo.com/tutorial/metadata/