Generating Swagger/OpenAPI documentation
Generate comprehensive REST API documentation that includes both API Javadoc and Swagger/OpenAPI specifications by using Ant build commands in your Sterling™ Order Management System runtime environment.
Before you begin
Ensure that your Sterling Order Management System runtime environment is properly configured with the following components:
- DTK (Development Toolkit) installed
- Runtime environment set up in the runtime/ directory
- Ant build tools available
About this task
You can generate the Swagger/OpenAPI documentation by using two different approaches depending on your needs.
Procedure
Results
After generation, the documentation is available at the following location:
runtime/xapidocs/swaggerdoc/
├── JSON/ # OpenAPI 3.0 specifications
├── HTML/ # Interactive HTML documentation
├── index.html # Main entry point
└── api-index.js # Search index
What to do next
Accessing the documentation
Open the main documentation page in your browser by using one of the following methods:
- Local file system: file:///path/to/runtime/xapidocs/swaggerdoc/index.html
- Web server: http://your-server/xapidocs/swaggerdoc/index.html