Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to add an API interface with the FastAdmin plug-in

Shulou Source: shulou.com Published: 2022-06-02 03:41:54 10月02日 Update

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

Tags: Directories files interfaces plug-ins controllers controls methods learning domain names folders schemes more languages help utility and then prefixes principles only at the same time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi Microsoft Huawei MySQL