How to send custom form data to REST API

Hi,

I want to send my custom form data using other service REST API, what is the process?

Thank You

Can you explain it a little bit more what do you want to do exactly? Do you want to send a HTTP request to another API (HTTP Endpoint)?

If you can show an example.

Hi,

Thanks for your reply.

I want to send the custom form data to REST API endpoint like -

Form Data

Name, Number, email

Api Endpoint - https://api.example.com/dat a
Content- Type= application/json
body
{
“name”: “form name goes here”
& so on…
}

Use axios for that get the form data then send it to API point using axios.

Learn more about Axios: Getting Started | Axios Docs (axios-http.com)