Creating web services
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Creating web services

  • 367 views
Uploaded 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

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

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
367
On Slideshare
367
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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