Discover how to build a simple RESTful API using Laravel, the popular PHP framework.
Overview
Syllabus
Introduction
- Building RESTful APIs in Laravel
- API overview
- APIs in the real world
- Our application: ePetitions API
- The basics of Laravel 8
- The project infrastructure
- Creating the database structure
- Creating a model factory and seeder
- Setting up the RESTful API routes
- Challenge: Creating an author resource infrastructure
- Solution: Creating an author resource infrastructure
- Using API resources to display all petitions
- Saving a new petition
- Displaying a specific petition
- Updating an existing petition
- Deleting a petition
- Challenge: Building the author resource
- Solution: Building the author resource
- Installing Postman
- GET all petitions
- POST a new petition
- GET (show) a specific petition
- PATCH (update) a petition
- DELETE a petition
- Challenge: Testing APIs with Postman
- Solution: Testing APIs with Postman
- Where to go from here
Taught by
Zuzana Kunckova