Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Creating web services

529 vues

Publié le

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

Publié dans : Technologie, Business
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

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

×