Monday, February 27, 2017

how to convert my laravel project to an api?

For example: I have a laravel project , which is about Students and their courses. This project has CRUD functions, where the user(mainly the school's admin) can create users and assign their courses. I have successfully created this project. But now how do i make this an API?. I need to share the students courses to another website, therefore i need to create an API right? I have never created an API in laravel, when i checked the documentation of Laravel, it has this topic called "API authentication using passport", is this talking about requiring users to login first before accessing the API ?. Would be very helpful if someone can explain a little bit about creating an API and where to start from.




via Mohamed Manas

Advertisement