vendredi 22 juillet 2016

Internal request from Laravel to Lumen Api

I'm currently creating an API for my website with Lumen (http://api.example.com). The API handles CRUD: like changing/reading user data, updating articles, adding comments, user auth and so on.

The API is necessary because I'm calling it from my mobile app. But I want my web application (http://www.example.com), based on Laravel, to communicate with the API too. That way I don't have to write the same code for the API and the webapp. But how can I do an internal request from the webapp to the API?

I'm aware of the Dingo package but that works on a single domain only. I can use Dingo on my Laravel framework, but I want to create the API with Lumen...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire