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

SymfonyCasts

API Platform 3 Part 1: Mythically Good RESTful APIs

via SymfonyCasts

Overview

Need to build an API and love the process? You've come to the right place.

Built on top of Symfony, API Platform enables you to build a rich, JSON-LD-powered, hypermedia API... pretty much instantly (we'll even teach you what those buzzwords mean). In this tutorial, we'll build a real app including:

  • Setting up API Platform in a Symfony app
  • Buzzwords: Swagger, OpenAPI & JSON-LD+Hydra
  • "Exposing" a Class to your API via ApiResource
  • Customizing operations
  • All about serialization and controlling input/output fields
  • IRIs & how to control them
  • Related resources
  • Embedded resources & Subresources
  • Filters
  • Pagination
  • Validation
  • Formats & Content-Type Negotiation
  • Bonus: React Admin

Syllabus

  • Installing API Platform
  • Creating your First ApiResource
  • Swagger UI: Interactive Docs
  • The Powerful OpenAPI Spec
  • JSON-LD: Giving Meaning to your Data
  • Hydra: Describing API Classes, Operations & More
  • API Debugging with the Profiler
  • Operations / Endpoints
  • The Serializer
  • Serialization Groups: Choosing Fields
  • Serialization Tricks
  • Pagination & Foundry Fixtures
  • Filters: Searching Results
  • PropertyFilter: Sparse Fieldsets
  • More Formats: HAL & CSV
  • Validation
  • Creating a User Entity
  • User API Resource
  • Relating Resources
  • Relations & Iris
  • Embedded Relations
  • Embedded Write
  • Adding Items to a Collection Property
  • Creating Embedded Objects
  • Removing Items from a Collection
  • Filtering on Relations
  • Subresources
  • React Admin

Taught by

Ryan Weaver

Reviews

Start your review of API Platform 3 Part 1: Mythically Good RESTful APIs

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.