REST General Information
Monitoring
Monitor all REST requests in the log file
Add the following lines to the log4j.xml:
<
category
name
=
"com.heiler.ppm.webservice"
>
<
priority
value
=
"TRACE"
/>
</
category
>
After Server restart REST requests will be written to the server log file. Please use with care as the log file can grow very fast. Example output:
015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] GET: http:
//localhost:1501/rest/V1.0/list/Product2G/byCatalog?fields=Product2G.AclProxy,Product2G.CurrentStatus,Product2G.Id,Product2G.ManufacturerAID,Product2G.ManufacturerName,Product2GLang.DescriptionLong(eng),Product2GLang.DescriptionShort(eng),Product2GPriceValueSales.Amount('Public',net_customer,USD,US,2014-07-01,1.0),Product2G.ProductNo&orderBy&formatData=false&metaData=true&startIndex=0&pageSize=100&includeLabels=true
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Request headers:
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Host: localhost:
1501
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Accept: application/json
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Authorization: Basic cmVzdDpoZWlsZXI=
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Accept-Language: en-US
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] User-Agent: Apache-HttpClient/
4.3
.
3
(java
1.5
)
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Connection: keep-alive
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Accept-Encoding: gzip,deflate
2015
-
06
-
22
17
:
49
:
56
,
386
DEBUG [qtp1453109885-
134
] [ListResource] Query parameters:
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] startIndex:
0
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] orderBy:
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] formatData:
false
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] includeLabels:
true
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] pageSize:
100
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] metaData:
true
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] fields: Product2G.AclProxy,Product2G.CurrentStatus,Product2G.Id,Product2G.ManufacturerAID,Product2G.ManufacturerName,Product2GLang.DescriptionLong(eng),Product2GLang.DescriptionShort(eng),Product2GPriceValueSales.Amount(
'Public'
,net_customer,USD,US,
2014
-
07
-
01
,
1.0
),Product2G.ProductNo
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] User: rest
2015
-
06
-
22
17
:
49
:
56
,
387
DEBUG [qtp1453109885-
134
] [ListResource] Locale: en_US
2