How to create SDP files via Wowza's REST API?

From some of the previous articles I can see that the process of sdp creation has been a manual process. (Unless someone else can correct me). The simplest way I think to automate it as a api would be to pair java api and http provider. HTTPProvider will help you create a http call to server where you can pass parameters or something. Then use the java api to compose and write the SDP file to disk.