dimanche 1 mai 2016

How create a API tool in Laravel?

I need to create a API management tool. In this tool a user can specify the path, the source whether it is a MySQL or SQLite or other database system query. The result of the source can be JSON or XML. And user also can set the authentication method, whether using TOKEN or password. All these information will be stored in database.

I am thinking of using ServiceProvider class of Laravel, as I read we need to register the service and bind it. My question is if the path is user generated (it can be any path so that it is difficult to define it on the route), how can I handle the dynamic path in Laravel for different service, output and also parameter ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire