Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Building Restful APIs with Symfony Components

PHP UK Conference via YouTube

Overview

Explore building RESTful APIs using Symfony components in this PHP UK Conference talk. Learn how to adapt models to desired representations, implement authentication strategies, and effectively test APIs. Discover tips for migrating legacy applications based on real-world use cases. Dive into creating POST, GET, and PUT endpoints, working with Symfony PSR-7 Bridge, and implementing custom normalizers. Understand the use of annotations, constraints, and validation techniques. Explore components and bundles like JMSSerializerBundle, FOSRestBundle, and LexikJWTAuthenticationBundle. Gain insights on error handling, testing strategies, and using fixtures with Alice & Faker. Acquire practical knowledge to build robust and efficient RESTful APIs with Symfony components.

Syllabus

Intro
1. INTRODUCTION
Sane way to approach REST
What are Symfony Components
II. SYMFONY COMPONENTS
Let's create a POST endpoint
Symfony PSR-7 Bridge
Deserializing
Annotations
Let's create a GET endpoint
Creating your custom normalizers
Simplest example
Validating objects
Constraints
Let's create a PUT endpoint
Components and bundles
JMSSerializerBundle
FOSRestBundle
LexikJWTAuthenticationBundle
IV. TESTING
Error handling - Nested errors
Error handling - HTML errors
Testing, some tips
Fixtures with Alice & Faker
Migrations - Option 1
Summarizing

Taught by

PHP UK Conference

Reviews

Start your review of Building Restful APIs with Symfony Components

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.