cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to get the Rest API status code alone?

ad24
1-Visitor

How to get the Rest API status code alone?

Is there a method in thingworx to retreive status code of REST API

2 REPLIES 2
AnnaAn
14-Alexandrite
(To:ad24)

Aakash D24​,

Currently I did not find any build-in service in ThingWorx to get the status code of REST API requests.

You may consider to use JavaScript functions but I am not sure if it would work.

Could you describe more details of your use case and see if there are other workaround instead of getting status code directly?

Welcome all to give your ideas for Aakash's question!

Br,

Anna

ad24
1-Visitor
(To:AnnaAn)

Hi Anna An

Thanks for your reply .

The main Use-case is to check the availability of external server,either the server is Up or Down.

to make it more clear i need to check whether Windchill server is up or not

I have chosen status code of API because it will be generic to find any system availability in a generic mannar.

Announcements


Top Tags