change api controller template to accept url encoded and multipart request body formats