At Begin, URL Handling and REST

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

    1 Event

    At Begin, URL Handling and REST - Presentation Transcript

    1. atBegin URL Routing and REST Mapping URLs to Models, Views and Controllers
    2. URL vs. URI • URl is a resource, that asks for action • URL is a file or a single item that is stateless
    3. URL vs. URI • URl is a resource, that asks for action http://www.lassosoft.com/home/ • URL is a file or a single item that is stateless
    4. URL vs. URI • URl is a resource, that asks for action http://www.lassosoft.com/home/ • URL is a file or a single item that is stateless http://www.lassosoft.com/ LassoSoft_Logo.png
    5. URL vs. URI • URl is a resource, that asks for action • URL is a file or a single item that is stateless
    6. Handling vs. Rewriting vs. Redirecting • Handling is conceptually parsing a URI to see what application components to call to provide a resource. • •
    7. Handling vs. Rewriting vs. Redirecting • Handling is conceptually parsing a URI to see what application components to call to provide a resource. • Rewriting is altering a URL to another one before it even hits the application stack.
    8. Handling vs. Rewriting vs. Redirecting • Handling is conceptually parsing a URI to see what application components to call to provide a resource. • Rewriting is altering a URL to another one before it even hits the application stack. • Redirecting is capturing a request for a URI or URL and sending a different one in lieu.
    9. atBegin • atBegin.lasso placed in Lasso Startup
    10. atBegin.lasso
    11. Apache • Apache conf send files to Lasso • Done using the Apache site config, not the .htaccess
    12. Apache Configuration
    13. REST • Really, what it's about is using the true potential of HTTP. • In a RESTful application you'll never modify data using a GET request. • resources being manipulated using a common set of verbs • the actual representation retrieved for a resource is dependent on the request and not the identifier
    14. SOAP RPC • SOAP RPC over HTTP, on the other hand, encourages each application designer to define a new and arbitrary vocabulary of nouns and verbs • getUsers(), savePurchaseOrder(...)
    15. YUCK • There’s a better way, writing RESTful apps. • Think of each page as a service that responds to requests instead of as a web page.
    16. http verbs in REST • Get • Remember Fielding http://roy.gbiv.com/ • Post Co-founder VP Apache project. • Put • Delete
    17. Developng RESTful URIs • In truly restful apps there are only seven functions.
    18. http verbs in REST • show (Get) • create (Post) • update (Put) • destroy (Delete) • index (Get) • new (Get) • edit (Get)
    19. RESTful URIs • http://www.widgets.co.uk/widgets/edit/2 • http://www.widgets.co.uk/widgets/edit/a76b8fe687c6d1f34d • http://www.widgets.co.uk/customers/create/234 • http://www.widgets.co.uk/customers/list.xml • http://www.widgets.co.uk/clients/destroy/bd76ea87c • http://www.widgets.co.uk/articles/destroy/why-you-should- user-our-widgets_bd76ea87c
    20. How do we handle these? • Routing File or an application controller • /app/controllers/application.inc • map the requests to models, views and controllers
    21. Routing File
    22. Routing File
    23. Routing File
    24. Routing File
    25. Application Structure
    SlideShare Zeitgeist 2009

    + djdarkbeatdjdarkbeat Nominate

    custom

    540 views, 0 favs, 1 embeds more stats

    A presenter at the Lasso Developer Conference 2009, more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 540
      • 538 on SlideShare
      • 2 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 10
    Most viewed embeds
    • 2 views on http://cahyo-menulis.blogspot.com

    more

    All embeds
    • 2 views on http://cahyo-menulis.blogspot.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

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

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories