RESTful Web Services and Drupal

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    RESTful Web Services and Drupal - Presentation Transcript

    1. Presented by Greg Hines
    2.  
    3.  
    4.  
      • E.g. SOAP, XML-RPC
      • E.g. REST
    5.  
    6.  
      • REST itself isn’t complicated. Defining REST is.
    7.  
      • Yet.
    8.  
    9.  
    10.  
    11.  
    12.  
    13.  
    14.  
    15.  
    16.  
    17.  
    18.  
    19.  
    20.  
    21.  
      • A blog post
      • A collection of blog posts
      • An image
      • A user
      • Map coordinates
      • A bank transaction
      • Search results
    22.  
      • Every resource has at least one URI; every URI points to a resource.
      • http://example.com/blog/2008/05/14/restful-web-services-and-drupal
      • http://example.com/blog/2008/05
      • http://example.com/
    23.  
    24.  
    25.  
      • Response Codes
        • 200 OK
        • 404 Not Found
        • 500 Internal Server Error
      • There are 39 response codes (plus two not in current use)
    26.  
      • HTTP is stateless by design
      • HTTP is stateless by design
      • Every HTTP request happens in isolation
      • HTTP is stateless by design
      • Every HTTP request happens in isolation
      • There are two kinds of state in a RESTful web service…
    27.  
    28.  
    29.  
    30.  
    31.  
    32.  
      • Resources link to each other:
      • <a href=&quot; http://example.com/resource/3 &quot;>...</a>
      • Resources link to each other:
      • <a href=&quot; http://example.com/resource/3 &quot;>...</a>
      • <link rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; href=&quot; http://example.com/resource/2.atom &quot; />
      • Resources link to each other:
      • <a href=&quot; http://example.com/resource/3 &quot;>...</a>
      • <link rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; href=&quot; http://example.com/resource/2.atom &quot; />
      • <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
      • <resource xmlns=&quot;http://example.com/ns/resource&quot;>
      • <content>...</content>
      • <nextResource href=&quot; http://example.com/resource/3 &quot;/>
      • <prevResource href=&quot; http://example.com/resource/1 &quot;/>
      • </resource>
    33.  
    34.  
    35.  
    36.  
      • (Sort of.)
      • An appeal to authority or argument by authority is a type of argument in logic consisting on basing the truth value of an assertion on the authority, knowledge, expertise, or position of the person asserting it.
      • – Wikipedia
      • Co-founder, chairman of the Apache Software Foundation
      • Co-founder of the Apache HTTP Project
      • On IETF working groups for HTTP, URI, and HTML
        • Architectural principal on HTTP working group
        • First name on HTTP spec
      • Originator of REST
    37.  
    38.  
      • User Management
      • User Management
      • Resource Management
      • User Management
      • Resource Management
      • Routing
    39.  
      • Multiple Representations for Resources
      • Multiple Representations for Resources
      • Content Negotiation
    40.  
    41.  
    42.  

    + Greg HinesGreg Hines, 11 months ago

    custom

    1053 views, 2 favs, 0 embeds more stats

    A presentation about RESTful web services and using more

    More Info

    © All Rights Reserved

    Go to text version
    • Total Views 1053
      • 1053 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 30
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as innappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel

    Categories