Hello,
Yes I can. I'm attaching a zip file containing two projects. In the StimulsoftWeb project, I have a normal Angular-style setup. It is basically what was generated from clicking on Publish from one of the sample Stimulsoft demo reports. The only thing I've done is remove the ViewerController.cs because this is what I want to move over to another API location. The second thing you'll notice is that in _Layout.cshtml, I changed the script tag for the api viewer from ~/api/viewer to
http://localhost:64273/api/viewer.
The second project, StimulsoftAPI is a simple API project which contains the Stimulsoft API Viewer controller. If you run this project in IISExpress, it will load up in
http://localhost:64273/api/viewer and you will see the normal Stimulsoft generated script.
Next, I run StimulsoftWeb in IISExpress and expect it to load the Stimulsoft script from the location I specified in _Layout.cshtml which is
http://localhost:64273/api/viewer.
At first, it does load the script from there, but then every other call to /api/viewer, it seems as though the script is trying to call it from the the web project (port 54848) instead of the API project (port 64273). In the API project, I tried specifying several options including options.Server.UseRelativeUrls, options.Server.PortNumber but none seem to make a difference.
How can I make it so that the API lives in a different location than the web front end?
Thanks!
-Emanuel