How is it possible to post form data to an external rest api?
At the moment i have an html form:
Let me contribute to the accepted answer since I don't have enough reputation to comment. Rather than pick all the form inputS one by one into a model, you could do the following
var model = this.forContollname.value
Then you could call the following
var values = JSON.stringify(model)
The values can then be passed into your post method. I hope this simplifies the process for someone with a large form.