Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
What is the best way to automate the Import step of this sequence?
Research Findings:
This seems like an obvious use case that would have a clear solution, but I cannot find it. I'd prefer not to iterate though each Entity XML, calling the Importer API for each file. I'm also concerned about dependency order issues doing that.
What is the suggestion for the best solution?
Thanks, Mike
PS - Is there a REST API Reference somewhere? This page is incomplete.
PS - I find no Solution Central API documentation indicating it could be used for this use case.
Solved! Go to Solution.
That's good to know. I found REST API Design, and a developer showed me how to traverse the TWX App to figure out what APIs are available. I can't find any reference to 'upload' (FileRepositoryUploader) or ImportSourceControlEntities in the Javadoc though.
So this would be the sequence:
There is Unzip available on 'FileRepository' and after unzip you can import from FileRepository
Is that available as a REST API, or only as a ThingWorx service method?
I'm not a TWX developer, but I assume trying to use a service leads to complexity at best, and a bootstrapping wall at worst.
Thanks, Mike
All available as REST API calls, every ThingWorx service is in essence a rest api call
That's good to know. I found REST API Design, and a developer showed me how to traverse the TWX App to figure out what APIs are available. I can't find any reference to 'upload' (FileRepositoryUploader) or ImportSourceControlEntities in the Javadoc though.
So this would be the sequence:
So the Upload and Import get a little tricky.
I believe you can see the API calls if you have the dev tools open and perform the function in composer (import source control entities) and if you put a file upload widget on a mashup and execute an upload it will show you that call.
Ideally your CD/CI puts the files directly into a TWX Repo