forked from adarshkumarsingh83/spring_boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.txt
More file actions
47 lines (44 loc) · 1.29 KB
/
help.txt
File metadata and controls
47 lines (44 loc) · 1.29 KB
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
mvn clean install
mvn packatge
mvn spring-boot:run
http://localhost:8080/index.jsp
------------------------------------------------------
Get Request
http://localhost:8080/employee/list
Accept:application/xml
------------------------------------------------------
Get Request
http://localhost:8080/employee/list
Accept:application/json
------------------------------------------------------
Get Request
http://localhost:8080/employee/find/100
Accept:application/json
Accept:application/xml
------------------------------------------------------
Delete REquest
http://localhost:8080/employee/delete/106
------------------------------------------------------
Post Request
http://localhost:8080/employee/save
Accept:application/json
Content-Type:application/json
{
"employeeId": 106,
"employeeFirstName": "Espark",
"employeeLastName": "Kumar",
"employeeEmail": "esprk@kumar",
"employeeSalary": 500
}
------------------------------------------------------
Post Request
http://localhost:8080/employee/save
Accept:application/xml
Content-Type:application/xml
<Employee xmlns="">
<employeeId>106</employeeId>
<employeeFirstName>Espark</employeeFirstName>
<employeeLastName>Kumar</employeeLastName>
<employeeEmail>espark@kumar</employeeEmail>
<employeeSalary>500</employeeSalary>
</Employee>