add ability to set api url in template

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>