AnsweredAssumed Answered

Set header of virtual rest service

Question asked by maarias on May 23, 2017
Latest reply on May 26, 2017 by Joel NeSmith

Hi guys.

 

How can I configure the header of virtual rest service for different responses?

Example:

 

First request:

Request:

GET /User/Sales/GetSalesInMonth

Headers:

X-Api-Version : 1

Token : aabbccddee

 

Response:

Status : 200 OK

[

{ “Month”: “April”,

  “Sales” : “45000”

},

{ “Month”: “May”,

  “Sales” : “23000”

}

]

 

Second request:

Request:

GET /User/Sales/GetSalesInMonth

Headers:

X-Api-Version : 1

Token : xxyyxxww

 

Response:

Status: 401 Unauthorized

Outcomes