0
Creating API for your web application<br />Adam Nemeth, @aadaam<br />
Every webapp can be ported to the mvc pattern<br />Theorem I.<br />
Every webapp can be ported to the entities-services-templates pattern<br />Theorem II. (this is what actually happens most...
IF YOUR TEMPLATES ARE FREE OF business  LOGIC, SERVICES CAN BE SEPARATED<br />Theorem III.<br />Free of logic: See [Parr,2...
YOU can always divide your templates to contextual and non-contextual to the given service<br />Theorem IV.<br />i.e. Mast...
Publish the data you fill your templates with their raw structure<br />Step 1.<br />i.e. serialize the key-value map of yo...
Make your services available without the non-service context templates as well<br />Step 2.<br />i.e. to do HIJAX<br />
Make your authorization abstract to your services<br />Step 3.<br />
Control 3rd party access to your services<br />Step 4<br />i.e. create an OAuth-gateway<br />
Separate all of your services to this layer and create only services your application uses<br />Invariant through the proj...
Upcoming SlideShare
Loading in...5
×

Creating web services

263

Published on

How to create twitter-like webservices. See also http://stage.vambenepe.com/archives/1801#comment-1075 and http://www.infoq.com/news/2011/09/ArchitecturalMirages

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

  • Be the first to like this

No Downloads
Views
Total Views
263
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Creating web services"

  1. 1. Creating API for your web application<br />Adam Nemeth, @aadaam<br />
  2. 2. Every webapp can be ported to the mvc pattern<br />Theorem I.<br />
  3. 3. Every webapp can be ported to the entities-services-templates pattern<br />Theorem II. (this is what actually happens mostly)<br />
  4. 4. IF YOUR TEMPLATES ARE FREE OF business LOGIC, SERVICES CAN BE SEPARATED<br />Theorem III.<br />Free of logic: See [Parr,2002]<br />
  5. 5. YOU can always divide your templates to contextual and non-contextual to the given service<br />Theorem IV.<br />i.e. Master Layout and service-specific template<br />
  6. 6. Publish the data you fill your templates with their raw structure<br />Step 1.<br />i.e. serialize the key-value map of your template as JSON<br />
  7. 7. Make your services available without the non-service context templates as well<br />Step 2.<br />i.e. to do HIJAX<br />
  8. 8. Make your authorization abstract to your services<br />Step 3.<br />
  9. 9. Control 3rd party access to your services<br />Step 4<br />i.e. create an OAuth-gateway<br />
  10. 10. Separate all of your services to this layer and create only services your application uses<br />Invariant through the project<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×