Building RESTful APIs in Laravel
1h 17mIntermediate2021-03-30
Authors

Zuzana Kunckova
UK-based web developer with a background in psychology
Course details
APIs serve as a bridge between different applications or systems, allowing us to efficiently share our data with the world. REST, an architectural style that defines how to build APIs, is popular, modern, and lightweight. In this course, discover how to create a RESTful API of your own. Join instructor Zuzana Kunckova as she demonstrates how to build a RESTful API using Laravel, the popular PHP framework. Learn how to set up your application, including how to create the database structure and set up RESTful API routes. Discover how to build your RESTful API and save, display, update, and delete resources Plus, explore how to use Postman to test your API and ensure that it works as expected.
Skills covered
LaravelPHPAPIsFull-Stack Web DevelopmentProjectWeb DevelopmentOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Building RESTful APIs in Laravel
1. An Introduction to APIs in Laravel
- 02 - API overview
- 03 - APIs in the real world
- 04 - Our application - ePetitions API
- 05 - The basics of Laravel 8
2. Setting Up Our Application
- 06 - The project infrastructure
- 07 - Creating the database structure
- 08 - Creating a model factory and seeder
- 09 - Setting up the RESTful API routes
- 10 - Challenge - Creating an author resource infrastructure
- 11 - Solution - Creating an author resource infrastructure
3. Building RESTful API
- 12 - Using API resources to display all petitions
- 13 - Saving a new petition
- 14 - Displaying a specific petition
- 15 - Updating an existing petition
- 16 - Deleting a petition
- 17 - Challenge - Building the author resource
- 18 - Solution - Building the author resource
4. Testing Our API with Postman
- 19 - Installing Postman
- 20 - GET all petitions
- 21 - POST a new petition
- 22 - GET (show) a specific petition
- 23 - PATCH (update) a petition
- 24 - DELETE a petition
- 25 - Challenge - Testing APIs with Postman
- 26 - Solution - Testing APIs with Postman
Conclusion
- 27 - Where to go from here