The REST API Swagger documentation
- Last Updated: August 26, 2025
- 2 minute read
- Corticon
- Version 7.1
- Documentation
Note: Swagger is supported on Tomcat and JBoss
application servers, but not Webshere.
Many of the execute and management REST API methods in a Corticon Server WAR file can be exposed in Swagger, the popular OpenAPI Specification tool for describing, producing, consuming, and visualizing RESTful Web services. Swagger is built-in to every Corticon Server installation; however, it is not, by default, enabled.
You can use Swagger through BASIC authentication and HTTPS connections.
Note: Get more information about
Swagger at swagger.io
Enabling Swagger on Tomcat
To enable Swagger on a Tomcat server installation:
- Confirm that the installation has
<Corticon_Home>/Server/Swagger/CcSwagger.jar. - Copy
CcSwagger.jar, and then paste it into<Tomcat>/webapps/axis/WEB-INF/lib. That effectively adds the JAR to the server classpath. - Edit
<Tomcat>/webapps/axis/WEB-INF/web.xmlto change the parameter value for enabling Swagger totrue:<init-param> <param-name>corticon.swagger.enabled</param-name> <param-value>true</param-value> </init-param> - Save your edited file, and then restart the server.
- In your browser enter
http://localhost:8850/axis/swagger/
Accessing Swagger on a Corticon Server for Java
To access Swagger and the exposed REST methods, enter the following URL
into a browser on a machine where Corticon Server is installed and running:
http://localhost:port/context/swagger
where the URL for typical local installation using HTTP is:
http://localhost:8850/axis/swaggerNote: For information about using
Swagger, see the web services topic Test the installed Corticon Server on
Java.
Adjusting Swagger access for custom ports and contexts
If you want to specify a preferred port or a context other thanaxis, you need to adjust
some Swagger configurations. To use a different port, for example for
secure HTTP on port 8851:
- Edit the file:
to change the[CORTICON_HOME]\Server\tomcat\webapps\axis\swagger\index.htmlurlline to:url = "https://localhost:8851/axis/corticon/swagger.json";Note: On 6.1 and earlier:and then save the file.url = "http://localhost:8851/axis/corticon/openapi.json"
To use a different context, for example Java_UAT:
- Stop the server.
- Edit the file:
to change the[CORTICON_HOME]\Server\tomcat\webapps\axis\swagger\index.htmlurlline to:url = "https://localhost:8851/Java_UAT/corticon/swagger.json";Note: On 6.1 and earlier:url = "http://localhost:8851/Java_UAT/corticon/openapi.json" - Save the file.
- Edit the file:
to change the[CORTICON_HOME]\Server\tomcat\webapps\axis\web.xmlswagger.api.basepathparameter value to:<param-value>/Java_UAT/corticon</param-value> - Save your edited file, and then restart the server.
Disabling Swagger on a Server
To disable Swagger on a Server:
- Edit
<Tomcat>/webapps/axis/WEB-INF/web.xmlto change the parameter value for enabling Swagger tofalse:<init-param> <param-name>corticon.swagger.enabled</param-name> <param-value>false</param-value> </init-param> - Save your edited file, and then restart the server.
When you restart the server, access to Swagger on the Server is disabled.