Wowza Community

How can I add new application using Wowza RestAPI

I want to know how to add an application using RestApi, not use Wowza manager.

I have a photo about restApi.

What do i insert in text field of body?

You should be able to use the schema from the right into the body on the left. In another example, you can take a look at an abridged version of application creation.

curl -X POST --header 'Accept:application/json; charset=utf-8' --header 'Content-type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive -d '
{
   "restURI": "http://localhost:8087/v2/servers/wse/vhosts/_defaultVHost_/applications/testlive",
   "name": "testlive",
   "appType": "Live",
   "clientStreamReadAccess": "*",
   "clientStreamWriteAccess": "*",
   "description": "Testing our Rest Service",
   "streamConfig": {
      "restURI": "http://localhost:8087/v2/servers/wse/vhosts/_defaultVHost_/applications/testlive/streamconfiguration",
      "streamType": "live"
   }
}'

You can append the rest of the options as indicated in the model schema to the curl post depending on what you are looking to setup.

Thanks,

Matt