This repository has been archived by the owner on Feb 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
54 lines (50 loc) · 4.73 KB
/
test.sh
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
echo '\ncurl -i -d "@purchaseorder.xml" -X POST http://localhost:1492/sifxml/Fred\n\n'
curl -i -d "@purchaseorder.xml" -X POST http://localhost:1492/sifxml/Fred
echo '\ncurl -i -d "@purchaseorder.xml" -X POST http://localhost:1492/sifxml/PurchaseOrders\n\n'
curl -i -d "@purchaseorder.xml" -X POST http://localhost:1492/sifxml/PurchaseOrders
echo '\ncurl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/PurchaseOrders/StaffPersonal\n\n'
curl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/PurchaseOrders/StaffPersonal
echo '\ncurl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/PurchaseOrders/PurchaseOrder\n\n'
curl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/PurchaseOrders/PurchaseOrder
echo '\ncurl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/StaffPersonal\n\n'
curl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -d "@staffpersonal.xml" -H "mustUseAdvisory: true" -X POST http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -d "@staffpersonal.xml" -H "mustUseAdvisory: true" -X POST http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -X GET http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -X GET http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652
echo '\ncurl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/StaffPersonals/StaffPersonal\n\n'
curl -i -d "@staffpersonal.xml" -X POST http://localhost:1492/sifxml/StaffPersonals/StaffPersonal
echo '\ncurl -i -d "@staffpersonals.xml" -X POST http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -d "@staffpersonals.xml" -X POST http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -X GET http://localhost:1492/sifxml/PurchaseOrders\n\n'
curl -i -X GET http://localhost:1492/sifxml/PurchaseOrders
echo '\ncurl -i -X GET http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -X GET http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -d "@purchaseorder.xml" -X PUT http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -d "@purchaseorder.xml" -X PUT http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652
echo '\ncurl -i -d "@staffpersonal1.xml" -H "replacement: FULL" -X PUT http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -d "@staffpersonal1.xml" -H "replacement: FULL" -X PUT http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652
echo '\ncurl -i -d "@staffpersonal2.xml" -X PUT http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -d "@staffpersonal2.xml" -X PUT http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652
echo '\ncurl -i -d "@staffpersonals1.xml" -H "replacement: FULL" -X PUT http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -d "@staffpersonals1.xml" -H "replacement: FULL" -X PUT http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -d "@staffpersonals2.xml" -X PUT http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -d "@staffpersonals2.xml" -X PUT http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -X DELETE http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -X DELETE http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652
echo '\ncurl -i -X GET http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -X GET http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652
echo '\ncurl -i -d "@staffpersonal.xml" -H "mustUseAdvisory: true" -X POST http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -d "@staffpersonal.xml" -H "mustUseAdvisory: true" -X POST http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -d "@deleterequest.xml" -H "methodOverride: DELETE" -X PUT http://localhost:1492/sifxml/StaffPersonals\n\n'
curl -i -d "@deleterequest.xml" -H "methodOverride: DELETE" -X PUT http://localhost:1492/sifxml/StaffPersonals
echo '\ncurl -i -X GET http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -X GET http://localhost:1492/sifxml/StaffPersonals/D3E34F41-9D75-101A-8C3D-00AA001A1652
echo '\nrm in/purchaseorder.xml\n\n'
rm -f 'in/purchaseorder.xml'
echo '\ncp purchaseorder.xml in\n\n'
cp purchaseorder.xml 'in'
echo '\ncurl -i -X GET http://localhost:1492/sif2xapi/D3E34F41-9D75-101A-8C3D-00AA001A1652\n\n'
curl -i -X GET http://localhost:1492/sif2xapi/D3E34F41-9D75-101A-8C3D-00AA001A1652