• Like
  • Save
Restify Your Apps
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Restify Your Apps

  • 1,381 views
Published

Short introduction of the pyocci module of the pyssf package.

Short introduction of the pyocci module of the pyssf package.

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,381
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. RESTify your AppsThe pyOCCI module
    Thijs Metsch
    Senior Software Engineer Grid and Cloud Technology
    tmetsch@platform.com
  • 2. To RESTify your AppsorHow to Provide a Service to your customers
    {whatever}-Layer
  • 3. How? / What? (Resource-aaS)
    Create, Retrieve, Update and Delete Resources
    Your App
    What is a Resource?
    Resources
    Perform Actions and Link Resources
    Expose Resources across Boundaries
  • 4. What is a Resource?
    The URI (Resource representation)http://example.com/foo/bar
    can be:
  • 5. Pool of Resources
    What do you need?
    Resource
    How to identify, query, list, handle, link, group, perform actions and tag resources?
    Resource
    Resource
    Resource
    Resource
    Resource
    Resource
  • 6. What it is 1
    It’s Capabilities 2
    What it belongs to (grouping) 3
    What Categories tells youabout a Resource:
  • 7. HTTP
    The only thing you need to do…
    Pool of Resources
    Resource
    pyOCCI
    module
    Resource
    Resource
    Resource
    HTTP
    Resource
    Resource
    Resource
    The ‘glue’
    You App
    pyREST takes care of this
  • 8. You NEED to:
    Map you Resources to REST-Resources by implementing:
    Create, Retrieve, Update, Delete and Action routines
  • 9. You GET for free:
    A interface to your Resources, a way to identify a resources, manage resources, query capabilities, external RESTful interface, an integration point, a (Cloud) Service, Beer,…
    pyREST module deals with all the hard issues:
    HTTP, Content-Types, Security, Query interface, Renderings etc.
  • 10. Flexible/Modular/Clear Separation
    A Look inside of pyOCCI
    Backend
    HTTP HeaderRendering
    Your App
    Backend
    HTTP text/uri-list Rendering
    OCCI
    Model*
    Backend
    HTTP
    Handling
    HTTP text/plain Rendering
    Backend
    Handles HTTP verbs (POST,PUT,DELETE,GET) & stuff (REST, Security, etc.)
    HTTP text/html Rendering

    Backend defines categories it can handle(Automatic selection)
    Map HTTP Data to OCCI Model(Automatic selection)
    * http://www.occi-wg.org
  • 11. Examples (1)
    Query int – shows what this Service can handle
  • 12. Examples (2)
    Create New…
    What is it?
    See Query int.
    Actions & Links
    Attributes
  • 13. Examples (3)
    Basically any Programming Language (Integration)
    CLI
  • 14. ?
    The pyOCCI module is part of pySSF: http://pyssf.sf.net
    Version: 0.2.19(This is pre- (Do not try this at home) -Alpha Software - also in pypi)
    LGPL Licensed
    © Platform Computing
  • 15. BACKUP
  • 16. Documentation
  • 17. CI (Testing, etc…)
  • 18. Code Quality
  • 19. Work In Progress