cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How test a DCRUM REST Service

ccanol
Participant

Hi People,

 

We need to create a monitoring integrated console and we need to integrate some DMI reports inside it.

 

We are trying to execute  a REST Call but we have some problem on it. Is possible to test the REST call? Do you have any tools in order to do it??

 

We have type in he follow in the browser:

http://localhost/rest/dmiquery/getDMIData?appId=CVENT&viewId=ClientViewDb&resolution=r&dimensionIds=...

Output:

{"errorMessage":"Can not deserialize instance of java.lang.String[] out of VALUE_STRING token\n at [Source: N/A; line: -1, column: -1]","status":500,"exceptionName":"IllegalArgumentException"}

 

DCRUM Version 12.2

 

Regards,

 

 

3 REPLIES 3

adam_piotrowicz
Dynatrace Pro
Dynatrace Pro

Carmen,

It looks like you're using GET, not POST.

Take a look at Example REST getDMIData, getDMIData2, getDMIData3 that says:

For other REST methods, you can use GET because all necessary parameters can be contained in the URL. To call getDMIData, getDMIData2, or getDMIData3, however, you need to use a POST request. This enables you to pass more parameters and parameter values than you can pass through a GET call in the URL.

Typing parameters in the URL means GET is used. To do it by POST, you need to use a tool for sending a REST request, for example the Advanced Rest Client plugin provided for Chrome.

ccanol
Participant

Thank you Adam, 

our really problem was in the parameter,  "dimensionIds" value should be incloused inside [ ] below you can see the example

 

http://localhost/rest/dmiquery/getDMIData3?appId=CVENT&viewId=ClientView&resolution=r&dimensionIds=[...]

 

Thank you for the update.