Start by installing the Microsoft Web Deployment Tool with Typical installation options.
Next, enable the Web Server IIS Role through the Server Configuration screen.
Ensure the following components are enabled within the Application Development:
Download the REST API .zip file. After extracting the REST API installer, start the Command Prompt as an Administrator and issue the following command:
Deploy REST API Command |
Copy Code
|
---|---|
.\JAMSite.deploy.cmd /Y |
The JAMS Rest API ships with a sample configuration file, Common.Sample, located in C:\inetpub\wwwroot\JAMS.
Save a copy of Common.Sample in C:\inetpub\wwwroot\JAMS
and name the copy "Common.Config". JAMS will reference this file for configuration settings.
Edit the newly created Common.Config file as necessary for the given environment:
C:\Program Files\MVPSI\JAMS\Scheduler
to the newly created Common.Config file.<add key="EnableRemoteAccess" value="true" />
C:\Program Files\MVPSI\JAMS\Scheduler\Common.config
. This will open port 4773, allowing the web client to communicate with the scheduler. In an environment with a Failover configured, port 4773 will already be open. After configuring the JAMS Server common.config file, restart the JAMS Server service.
Add the user running the App Pool to the JAMSApp Role on the JAMS Database created during the initial installation. This will give proper permissions to the JAMS Database.
NOTE: It may be necessary to give the DefaultAppPool the JAMSApp Role in SQL.
Users are recommended to run DefaultAppPool under LocalSystem for local machine installations.
For domain installations, it may be necessary to run the DefaultAppPool as NetworkService.
If JAMS services are running as a domain account, it is also recommended to run the DefaultAppPool as that same domain account.
Restart IIS Services.
After installing the REST API components, you can then view the ASP.NET Header Example and Swagger Example sites by entering the following URL’s in a browser:
http://JAMSServerName/JAMS/swagger
http://JAMSServerName/JAMS/
The above two sites provide examples of headers that can be passed to make the API call.