Skip to main content
11-Garnet
March 29, 2024
Solved

rest API

  • March 29, 2024
  • 1 reply
  • 1195 views

I created a restapi interface that outputs thingworx in json format, why is the response in HTML format?企业微信截图_17117012635491.png企业微信截图_17117013746276.png

Best answer by Velkumar

Hi @Snoopy_hu 

 

Add header value: "Accept": "application/json"

 

/VR

 

 

1 reply

Velkumar19-TanzaniteAnswer
19-Tanzanite
March 29, 2024

Hi @Snoopy_hu 

 

Add header value: "Accept": "application/json"

 

/VR

 

 

Snoopy_hu11-GarnetAuthor
11-Garnet
April 1, 2024

Thanks, following your method worked for me, I was also wondering how to set the cookie