2 Replies Latest reply on Jul 7, 2017 12:48 PM by ad24 RSS
    ad24 Explorer

    How to get the Rest API status code alone?

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

      • Re: How to get the Rest API status code alone?
        anna Communicator

        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

          • Re: How to get the Rest API status code alone?
            ad24 Explorer

            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.