pjproject_bundled: check whether UPDATE is supported on outgoing calls
[asterisk/asterisk.git] / rest-api-templates / param_parsing.mustache
index aabd728..d156ab7 100644 (file)
                {}
        }
 {{/has_path_parameters}}
+{{^is_websocket}}
+{{#parse_body}}
+{{#body_parameter}}
+       args.{{c_name}} = body;
+{{/body_parameter}}
+{{^body_parameter}}
+       if (ast_ari_{{c_name}}_{{c_nickname}}_parse_body(body, &args)) {
+               ast_ari_response_alloc_failed(response);
+               goto fin;
+       }
+{{/body_parameter}}
+{{/parse_body}}
+{{/is_websocket}}