In this workshop series, you'll learn how to design, version, build, and protect a web API using Laravel. We'll begin from scratch with a basic Laravel project, and construct a fully-featured API one lesson at a time.
Overview
Syllabus
- What You Need
- Status 200
- Working with Postman
- Setup the System
- Designing the Url
- How to Version Your API
- Authentication Using Tokens
- Revoking Authentication Tokens
- Responding to Requests
- Designing Response Payloads
- Conditionally Omitting and Including Data
- Using Optional Parameters to Load Optional Data
- Writing Filters
- Using (and Filtering) Nested Resources
- Sorting Data
- Handling Requests
- Creating Resources with Post Requests
- Deleting Resources with Delete Requests
- Replacing Resources with Put Requests
- Updating Resources with Patch Requests
- Controlling Access
- Using Policies for User Authorization
- Controlling Access with Token Abilities
- Applying Granular Permissions
- Implement Those Controllers
- Implementing the AuthorTicketsController
- Managing Users
- Some Important Topics
- The Principle of Least Privilege
- Handling Errors
- Documenting Your API with Scribe
Taught by
Jeremy McPeak