The 103-966 OpenInsight OEngineServer Configuration.pdf document provides thorough instructions for installing the Engine Server as a true Windows service. It also provides instructions for launching it from a command prompt (aka "debug" mode). We recommend starting out by running the Engine Server from a command prompt since developers will need access to the OpenInsight Debugger when writing and troubleshooting their web APIs. Here's an example of what this should look like if everything is configured correctly:
Knocking on the Front Door
If everything else is in good order then you are ready to run your first test. This can be done from a web browser, but unless you disabled authentication, you are likely only going to see a default 401 (i.e., unauthorized) response like this:
However, this is actually good news! This confirms that the API request was received properly by the SRP HTTP Framework but it was rejected due to insufficient credentials. (Note: older browsers such as Internet Explorer do not display the JSON response as plain text in the window as seen above. Instead, by default they will attempt to download the JSON response as a file.)
We recommend that a good API test utility be used. This is critical for providing credentials, testing other HTTP methods (e.g., POST, PUT, PATCH, and DELETE), and sending up content for the API to process. Postman is a very popular GUI tool that is available on multiple platforms. It has a free license which will be sufficient for all your testing needs. There are other options such a cURL and various browser plug-ins. Here's what a test of the same endpoint looks like with our pre-installed "test" user credentials:
Again, if you see either of the two responses this means success! You are ready to write your own RESTful APIs.