Best Practice to submit a POST request from FORM

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 .

Hi @mpmohi! Happy to help with this. Here are some docs that might help:

I can also help guide you along if you share a screenshot of your current setup!