Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Restify Your Apps
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