Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rapid REST API Development with Symfony

Rapid REST API Development with Symfony

Combining multiple tools from Symfony community to create a REST API in minutes.

Pawel Jedrzejewski

October 31, 2015
Tweet

More Decks by Pawel Jedrzejewski

Other Decks in Technology

Transcript

  1. Paweł Jędrzejewski I really like Open Source I created Sylius

    I co-founded Lakion I help organize PHPers Łódź
  2. @pjedrzejewski Many of them are unpleasantly surprised with the fact

    that they need to maintain it aLer going live.
  3. Why do we need APIs? @pjedrzejewski • Sharing data and

    avoiding duplicaGon • Decoupling funcGonality (SRP, SeparaGon of Concerns etc.) • Allowing other people to consume our service
  4. @pjedrzejewski POST / HTTP/1.1 Host: xyz.com Content-Type: applicaGon/soap+xml; charset=uo-8 <?xml

    version=„1.0” ?> <soap:Envelope …> <m:GetUserDetails> <m:UserID>41</m:UserID> </m:GetUserDetails> </soap:Envelope> SOAP
  5. REST API Principles @pjedrzejewski Client-server architecture Stateless Cacheable Based on

    standards (HTTP, URL, XML, JSON) Independent from the plaoorm and language
  6. The Richardson Maturity Model @pjedrzejewski Level 0: Swamp of POX

    Level 1: Resources Level 2: HTTP Verbs Level 3: Hypermedia Controls