How to add an API interface with the FastAdmin plug-in
This article mainly introduces "how to add API interface with FastAdmin plug-in". In daily operation, I believe many people have doubts about how to use FastAdmin plug-in to add API interface. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to add API interface with FastAdmin plug-in". Next, please follow the editor to study!
Option one
Create an api directory under the\ addons\ guestbook\ controller directory (if the plug-in only has an api controller, you don't have to create it. The name of the api directory is customized. Here, take api as an example. ).
In the api directory, create the Base.php base class file:
/ / api base class / addons/guestbook/controller/api/Base.php file