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

ReSTful web services via RFC-2616

ReSTful web services via RFC-2616

PHP Chicago Meet-Up Deck presented at IfByPhone Inc. Chicago, IL

http://www.meetup.com/Chicago-PHP-Meet-up/events/69337652/

Robert Allen

July 27, 2012
Tweet

More Decks by Robert Allen

Other Decks in Technology

Transcript

  1. PROJECT DATE CLIENT 2012-07-26 ROBERT ALLEN / @ZIRCOTE RESTFUL WEB

    SERVICES VIA RFC-2616 PHP CHICAGO MEET-UP Ifbyphone_Guest IFBYPHONE 1 Thursday, July 26, 12
  2. XML-RPC Invented 1998 Process Patented in 2006 Four times the

    bytes as xml Effectively ReST in practice 7 Thursday, July 26, 12
  3. It’s not... standard requirement always pretty always sane Agreed upon

    by more than 2 people in a room of 20. 11 Thursday, July 26, 12
  4. It is... an architectural guideline very flexible or rigid As

    simple or complex as you make it. a living technology the culmination of previous works into a single suggested tool chest. 12 Thursday, July 26, 12
  5. Roy Thomas Fielding. Dissertation: “Architectural Styles and the Design of

    Network- based Software Architectures” Principal Author of RFC-2608, RFC-2616, RFC-2396, RFC-1808, RFC-2145 and RFC-1945 “Life is a distributed object system. However, communication among humans is a distributed hypermedia system, where the minds intellect, the voice +gestures, eyes+ears, and imagination are all components. -- Roy T. Fielding 1998 13 Thursday, July 26, 12
  6. RFC-1808 (June 1995) Relative URL RFC-1945 (May 1996) HTTP 1.0

    RFC-2068 (January 1997) HTTP 1.1 RFC-2145 (May 1997) HTTP Version Numbers RFC-2396 (August 1998) Uniform Resource Identifiers RFC-2616 (June 1999) HTTP 1.1 Architectural Styles and the Design of Network-based Software Architectures. (2000) 14 Thursday, July 26, 12
  7. always sending a 200 regardless of state sending E-Tags but

    not using them assignment of errors to incorrect status advertising Content-Negotiation but failing to honor it. 43 Thursday, July 26, 12
  8. Other Status Code Considerations Not all user agents are friendly.

    Don’t be an unfriendly agent. not all 200s are created equal. 47 Thursday, July 26, 12
  9. Want to Know More? www.ietf.org www.ics.uci.edu/~fielding www.zircote.com scholar.google.com => Roy

    Fielding groups.google.com => Api-Craft 50 Thursday, July 26, 12