Notes Creation API

Learn to implement an API to create a new record in the database on form submission.

The new note form page

We will start with creating an HTML form to enter the details of a new note.

Route

First, let’s create the route of the /notes/new page. In the routers/router.go file, create a new entry:

Get hands-on with 1400+ tech skills courses.