The REST API Swagger documentation
- Last Updated: October 26, 2026
- 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/
The Corticon Server REST APIs page opens, as shown:
![]()
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/swaggerwhere the URL for typical local installation using HTTP is:
http://localhost:8850/axis/swagger
Note: 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 than axis, you need to adjust some Swagger configurations.
To use a different port, for example for secure HTTP on port 8851:
-
Edit the file:
[CORTICON_HOME]\Server\tomcat\webapps\axis\swagger\index.htmlto change the
urlline to:url = "https://localhost:8851/axis/corticon/swagger.json";Note: On 6.1 and earlier:
url = "http://localhost:8851/axis/corticon/openapi.json"and then save the file.
To use a different context, for example Java_UAT:
-
Stop the server.
-
Edit the file:
[CORTICON_HOME]\Server\tomcat\webapps\axis\swagger\index.htmlto change the
urlline 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:
[CORTICON_HOME]\Server\tomcat\webapps\axis\web.xmlto change the
swagger.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.