How to access Wowza Streaming Engine Swagger Documentation with Swagger CodeGen

This article describes how to configure Swagger CodeGen to work with the Wowza Streaming Engine Swagger documentation server.

Note: Wowza Streaming Engine™ 4.5.0 or later is required.


  1. Install the Swagger Codegen generator by using the Swagger codegen GitHub project instructions on GitHub. Confirm that the installed Swagger Codegen generator is working before proceeding to the next step.
  2. On your Wowza Streaming Engine server, open the [install-dir]/conf/Server.xml configuration file in a text editor, and then add the DocumentationServerBasePath and DocumentationServerRemoveRequestPath settings to the Wowza Streaming Engine REST API configuration section (<Server>/<RESTInterface>). Insert these settings immediately after the DocumentationServerAuthenticationMethod setting, as shown in the following example:
    	<!-- none, basic, digest-->
    	<!-- none, basic, digest-->
  3. Restart Wowza Streaming Engine to apply the changes.


Run the following command to generate the required code:

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i http://[wowza-ip-address]:8089/swagger.json -l php -o phpCodeOutputFolder/

This generates the PHP code to access the Wowza Streaming Engine REST API and places the results in the phpCodeOutputFolder.

For details, see Getting Started in the Swagger codegen GitHub project.

Originally Published: For Wowza Streaming Engine 4.5.0 on 06-23-2016.

If you're having problems or want to discuss this article, post in our forum.