I have a POST api that required different data to create a order. I have made a form now what are the best practices to implement this.
on a form submit event how should I trigger the api resource and how should I even define the post end point.
Can I do something like this: on submit of a form -> trigger a query -> there process the form data and make a json -> trigger actual endpoint and pass that json ?
Let me know how you guys do these .