Practice Makes You Better
This lesson serves as a guide and helps you follow the steps to improve your API development skills.
Overview
The new module, ‘Menu Items’, is simple. The CRUD functionality code is similar to the ‘Restaurants’ module. For your practice, we will share the steps you can follow to create the complete functionality. Let’s begin.
Postman
The screenshots for all the menu item API endpoints is given below:
Don’t forget to authenticate the above requests using ‘Bearer Token’. Its value should be
{{Token}}
.
Migration + model
Any new module starts with the table definition (the migration file) ...