RESTify your AppsThe pyOCCI module<br />Thijs Metsch<br />Senior Software Engineer Grid and Cloud Technology<br />tmetsch@...
To RESTify your AppsorHow to Provide a Service to your customers<br />{whatever}-Layer<br />
How? / What? (Resource-aaS)<br />Create, Retrieve, Update and Delete Resources <br />Your App<br />What is a Resource?<br ...
What is a Resource?<br />The URI  (Resource representation)http://example.com/foo/bar <br />can be:<br />
Pool of Resources<br />What do you need?<br />Resource<br />How to identify, query, list, handle, link, group, perform act...
What it is 1<br />It’s Capabilities 2<br />What it belongs to (grouping) 3<br />What Categories tells youabout a Resource:...
HTTP<br />The only thing you need to do…<br />Pool of Resources<br />Resource<br />pyOCCI<br />module<br />Resource<br />R...
You NEED to:<br />Map you Resources to REST-Resources by implementing:<br />Create, Retrieve, Update, Delete and Action ro...
You GET for free:<br />A interface to your Resources, a way to identify a resources, manage resources, query capabilities,...
Flexible/Modular/Clear Separation<br />A Look inside of pyOCCI<br />Backend<br />HTTP HeaderRendering<br />Your App<br />B...
Examples (1)<br />Query int – shows what this Service can handle<br />
Examples (2)<br />Create New…<br />What is it?<br />See Query int.<br />Actions & Links<br />Attributes<br />
Examples (3)<br />Basically any Programming Language (Integration)<br />CLI<br />
?<br />The pyOCCI module is part of pySSF: http://pyssf.sf.net<br />Version: 0.2.19(This is pre- (Do not try this at home)...
BACKUP<br />
Documentation<br />
CI (Testing, etc…)<br />
Code Quality<br />
Work In Progress<br />
Upcoming SlideShare
Loading in …5
×

Restify Your Apps

1,713 views

Published on

Short introduction of the pyocci module of the pyssf package.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,713
On SlideShare
0
From Embeds
0
Number of Embeds
185
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Restify Your Apps

  1. 1. RESTify your AppsThe pyOCCI module<br />Thijs Metsch<br />Senior Software Engineer Grid and Cloud Technology<br />tmetsch@platform.com<br />
  2. 2. To RESTify your AppsorHow to Provide a Service to your customers<br />{whatever}-Layer<br />
  3. 3. How? / What? (Resource-aaS)<br />Create, Retrieve, Update and Delete Resources <br />Your App<br />What is a Resource?<br />Resources<br />Perform Actions and Link Resources<br />Expose Resources across Boundaries<br />
  4. 4. What is a Resource?<br />The URI (Resource representation)http://example.com/foo/bar <br />can be:<br />
  5. 5. Pool of Resources<br />What do you need?<br />Resource<br />How to identify, query, list, handle, link, group, perform actions and tag resources?<br />Resource<br />Resource<br />Resource<br />Resource<br />Resource<br />Resource<br />
  6. 6. What it is 1<br />It’s Capabilities 2<br />What it belongs to (grouping) 3<br />What Categories tells youabout a Resource:<br />
  7. 7. HTTP<br />The only thing you need to do…<br />Pool of Resources<br />Resource<br />pyOCCI<br />module<br />Resource<br />Resource<br />Resource<br />HTTP<br />Resource<br />Resource<br />Resource<br />The ‘glue’<br />You App<br />pyREST takes care of this<br />
  8. 8. You NEED to:<br />Map you Resources to REST-Resources by implementing:<br />Create, Retrieve, Update, Delete and Action routines<br />
  9. 9. You GET for free:<br />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,…<br />pyREST module deals with all the hard issues:<br />HTTP, Content-Types, Security, Query interface, Renderings etc.<br />
  10. 10. Flexible/Modular/Clear Separation<br />A Look inside of pyOCCI<br />Backend<br />HTTP HeaderRendering<br />Your App<br />Backend<br />HTTP text/uri-list Rendering<br />OCCI<br />Model*<br />Backend<br />HTTP<br />Handling<br />HTTP text/plain Rendering<br />Backend<br />Handles HTTP verbs (POST,PUT,DELETE,GET) & stuff (REST, Security, etc.)<br />HTTP text/html Rendering<br />…<br />Backend defines categories it can handle(Automatic selection)<br />Map HTTP Data to OCCI Model(Automatic selection)<br />* http://www.occi-wg.org<br />
  11. 11. Examples (1)<br />Query int – shows what this Service can handle<br />
  12. 12. Examples (2)<br />Create New…<br />What is it?<br />See Query int.<br />Actions & Links<br />Attributes<br />
  13. 13. Examples (3)<br />Basically any Programming Language (Integration)<br />CLI<br />
  14. 14. ?<br />The pyOCCI module is part of pySSF: http://pyssf.sf.net<br />Version: 0.2.19(This is pre- (Do not try this at home) -Alpha Software - also in pypi)<br />LGPL Licensed<br />© Platform Computing<br />
  15. 15. BACKUP<br />
  16. 16. Documentation<br />
  17. 17. CI (Testing, etc…)<br />
  18. 18. Code Quality<br />
  19. 19. Work In Progress<br />

×