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

SymfonyCasts

RESTful APIs in the Real World Course 2

via SymfonyCasts

Overview

Making RESTful APIs is hard, really hard. There are a lot of concepts to know - resources, representations, HTTP methods, status codes, etc.

Course 1 got us really comfortable with all the terminology. So in episode 2, we're attacking the hard stuff:

  • Using a serializer
  • Token Authentication System (Silex's security system)
  • Hypermedia versus media
  • The HAL hypermedia type
  • The HATEOAS PHP library
  • The HAL Browser
  • Embedding resources (versus adding links)
  • Tricks with Behat for testing API's
  • Pagination and filtering
  • A lot of other pieces in between!

This stuff is not easy. But if you make it through, you'll be armed to attack whatever API need you have.

Syllabus

  • The Serializer: Swiss-Army Knife of APIs
  • Serializer Configuration (SerializationContext)
  • Serializer Annotations
  • Requiring Authentication
  • Authorization via a Token
  • Securing More Endpoints
  • Authentication Error Format
  • Centralizing Error Response Creation
  • Creating Token Resources in the API
  • Reuse and Consistency
  • Validate that Token Resource
  • New Battle Resource (the Scenario)
  • Start (Create) an Epic Battle (Resource)
  • GET Your (One) Battle On
  • Battles and Programmer - Link them!
  • I

Taught by

Ryan Weaver and Leanna Pelham

Reviews

Start your review of RESTful APIs in the Real World Course 2

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.