...
- Download the REST web app: http://cdrsrvbuild2:8080/jenkins/job/rator-selfcare-rest-API-TRUNK/ws/target/rator-selfcare-rest-api-0.0.1-SNAPSHOT.war
- Copy the war file to the Tomcat webapps directory and (re-)start the Tomcat application.
- Download the Swagger UI documentation web servce: TODO
- Copy the .dist folder to the <Tomcat root>/webapps/swagger-ui directory and (re-)start the Tomcat application. Nb This can be a different Tomcat installation than in step 2, or the same. TODO: Verify this
- In your browser, enter URL "http://<Swagger server and port>/swagger-ui/?url=http://<REST server and port>/api/swagger.json"
NB Your Tomcat installations server.xml file will specify a base path for the REST project. If step 6 does not work, you must either modify the base path, or modify the URL accordingly. The URL in step 6 assumes a <context/>
entry a la the following ( - notice the empty string in the path parameter):
Code Block |
---|
<Context antiJARLocking="true" docBase="C:\Program Files\Tomcat\apache-tomcat-7.0.54\webapps\rator-selfcare-rest-api" path="" reloadable="true" source="org.eclipse.jst.jee.server:rator-selfcare-rest-api"/>
|
Resources
Source code is available both in our SVN repository, in Jenkins and in Nexus (where our Jenkins build deploys to).
...