Skip to main content
6-Contributor
December 13, 2023
Solved

How to create REST API and use in react application

  • December 13, 2023
  • 1 reply
  • 1621 views

I have created a one thing, inside that thing one service is created and I want to use this service in my react application. 

        I used the following format of API 
'http://localhost/Thingworx/Things/ThingWorxTrainingMaintenanceBlog/Services/GetBlogEntriesWithComments' but still facing issue.
         Please suggest me the correct way of doing this.

         I'm using Thingworx 9.3

Best answer by nmutter

You need to allow REST-requests from different domain. See https://www.ptc.com/en/support/article/CS229450 

1 reply

19-Tanzanite
December 13, 2023
6-Contributor
December 13, 2023

err.png

nmutter16-PearlAnswer
16-Pearl
December 13, 2023

You need to allow REST-requests from different domain. See https://www.ptc.com/en/support/article/CS229450