Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Creating web services


Published on

How to create twitter-like webservices. See also and

Published in: Technology, Business
  • Login to see the comments

  • Be the first to like this

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 />