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

Rest Method

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 Guru
DynaMight Guru

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 | TEMPEST a.s., Slovakia, Dynatrace Master Partner