Manually creating ADD form using Swagger

Is there a tutorial that I can follow to manually create a form that will post data to a REST API to insert into DB? I have managed to create the form and generate the fields but don't know how to configure the events to post the form data as body for the POST request

Check this article for more info:

I have looked at the angular version but this doest show how to post form data to the post API endpoint. Thats the bit I am looking for. My API takes all the form data in body as json.

I’ve linked wrong version of the article. Here is the Angular version:

The service createXXX method will post the data