REST API – Enabling debugging

The REST API for Wowza Streaming Engine is extremely powerful however it can be useful to see if requests are reaching Wowza, and of course if they are correct. Normally Wowza Streaming Engine does not provide any indication. You can enable REST API debugging by adding the following property into RESTInterface/Properties of the Server.xml

<Property>
<Name>debugEnable</Name>
<Value>true</Value>
<Type>Boolean</Type>
</Property>

It is not recommended to have this property enabled when running in production however is very useful for REST API development.

If you start and login to the Wowza Streaming Engine Manager you should then see something similar to the following

INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_/users/andrew
INFO server comment – REST API: Server request (GET): http://localhost:8087/restinfo
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_/vhosts
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_/status
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_/status
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_/monitoring
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/machine/monitoring/current
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/machine/monitoring/current
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_/monitoring/historic?start=2015-11-03T23:23&end=2015-11-04T00:22
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/machine/monitoring/historic?start=2015-11-03T23:23&end=2015-11-04T00:22
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/machine/monitoring/current
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/machine/monitoring/current
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/machine/monitoring/current
INFO server comment – REST API: Server request (GET): http://localhost:8087/v2/servers/_defaultServer_

This should allow you to see the REST API calls the Manager makes for specific functionality.


Comments are closed.