-
Notifications
You must be signed in to change notification settings - Fork 3
Home
The API itself is managed through configurations you set during the setup wizard or on your config creation/writing process. The config.php file lives inside the config/ directory in the root directory of the project itself. Make sure config/ dir is writeable (chmod: 777).
If you want to handle config file creation make it return an array with these data config.php.
Client-API intents to be simple and predictable.
When it comes on memorizing the actions you may repeat.
This project currently provides 4 accessible endpoints (classes). Each of them handle your HTTP requests into their respective methods and process the request payload.
-
Server info
GET: http://linuxip/path-to-client-api/info -
DHCP Provisioning
GET/POST: http://linuxip/path-to-client-api/dhcp -
PPPoE Provisioning
GET/POST: http://linuxip/path-to-client-api/pppoe -
SNMP Driver
GET/POST: http://linuxip/path-to-client-api/snmp
At this stage we have to keep things simple and avoid htaccess configurations/confusions to provide the proper way to create API endpoints. Basically we've created these 4 directories and their index.php's. Are the controllers that handle your requests.
Each of classes mentioned above have the very first method named info, which provides the essential information regarding of the desired API you planing to use.
After we have a brighter vision through pleasant feedback and analysis, we'll be re-writing the API using Symfony framework and port it as a Laravel package too.