Skip to main content
6-Contributor
Dec 13, 2023 8:59 AM UTC
Solved

How to create REST API and use in react application

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

nmutterAnswer
17-Peridot
Dec 13, 2023 1:59 PM UTC

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

3 replies

19-Tanzanite
Dec 13, 2023 11:29 AM UTC
6-Contributor
Dec 13, 2023 12:57 PM UTC

err.png

Translate
nmutter17-PeridotAnswer
17-Peridot
Dec 13, 2023 1:59 PM UTC

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

Translate