All of the files on that location are accessible via hyperlink through the Thingworx REST API. You can find the URL by running the GetFileListingWithLinks service on the FileRepository thing. The URL format to access them is:
In your case, it might be something like: http://localhost/Thingworx/FileRepositories/Repository/file.html
Hope this helps!
Content Move Notice (Dec. 2018)
ThingWorx Code Examples boards are now merged into IoT Tech Tips under the Code Examples label.
The Service Apps board is now merged into the Manufacturing Apps board.