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

How to extract the response from the REST method execution?

gfragoso
Newcomer

How to extract the response from Rest method execution?

 

For example

 

Request

{

 "StoreNumber": "30",  "PosNumber": "3",  "CashierNumber": "003",  "IPAddress": "2.198.131.1“

}

 

Response:

 {

"Success":true,"ErrorCode":"0000","Message":"La operacion ha sido completada","Payload":[{"TokenPosars":"eyJhbGciOdI1NiIsInR5cCI6IkpXVCJ9.

}

 

Is possible extract the "Success", ErrorCode" , etc?? 

 

Saludos

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

The only way is to extract it from the code from the method in your code where the value is located before the JSON is generated.  You must define a request attribute and collect the data using .Net method parameter(s). See the documentation if you are not sure.

There is no option to parse the response payload to extract value.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts