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

SymfonyCasts

Symfony RESTful API: Hypermedia, Links & Bonuses (Course 5)

via SymfonyCasts

Overview

After 4 courses, we've somehow avoided the hottest buzzwords in REST: Hypermedia and HATEOAS. These can make your API awesome, or could bring you to your knees with fuzzy details, missing best practices and complexity. Let's make our API awesome:

  • Linking to Resources (and Hypermedia) without hating it
  • Controlling your JSON fields with VirtualProperty and SerializedName
  • Customizing your input field names with property_path
  • The wonderful HATEOAS php library
  • HAL+JSON... and whether you want to use it or not
  • Subordinate resources!
  • Handle ugly, non-RESTful, weird endpoints with some swagger

Syllabus

  • The Battle Resource
  • Designing (Testing) the Create Battle Endpoint
  • Saving Related Resources in a Form
  • Finishing the Battle
  • VirtualProperty: Add Crazy JSON Fields
  • Form Voodoo: property_path
  • Adding Battle Validation
  • EntityType Validation: Restrict Invalid programmerId
  • HATEOAS & Hypermedia: The Buzzwords Level
  • Link from Battle to Programmer
  • The Great Hateoas PHP Library
  • The HAL JSON Standard
  • Embedding Objects with Hal?
  • Customize how your Links Render
  • Customizing (making less ugly) Embeddeds!
  • Subordinate URL Structure
  • Coding the Subordinate Resource Endpoint
  • Rock-Solid, Consistent Collection Endpoints
  • Weird Endpoint: The tagline as a Resource?
  • Weird Endpoint: Command: Power-Up a Programmer

Taught by

Ryan Weaver and Leanna Pelham

Reviews

Start your review of Symfony RESTful API: Hypermedia, Links & Bonuses (Course 5)

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.