API for new tables imigrated on Vangurad

Closed
Vanguard - Advanced PHP Login and User Management Vanguard - Advanced PHP Login and User Management October 31, 2018
Login to reply
Milos Stojanovic Support Agent
5 years ago
Closed due to inactivity.
Milos Stojanovic Support Agent
5 years ago

Hey Ploutarchos,

Unfortunately, there is no API generator inside the app.

Basically, you will need to create the API for those new tables/resources manually by adding new routes to /routes/api.php file and connecting them with appropriate controllers that you will create for this purpose. If you are familiar with Laravel then adding new routes, controllers and custom domain code should not be an issue.

Kind regards,
Milos 

Ploutarchos Michaelides
5 years ago

Hi, 

As title says I would loved to know more about API, I have imigrated a Laravel project on Vanguard. (example: this app have three more tables, customers_details which are pointed  specific for earch user, customers_product, (only one) and accounting_system.  Now I want to create an API for those tables too, and since Laravel is based on MVC model, I guest that RESTful APIs should create with Controllers, or not ? :) I don't know I'm assuming, so if not, where I should find the API generator (if so) inside the app? 

Thanks! :)