tapajos
Re:Rethinking web API development
on Wednesday June 13, 2012 @08:47PM (#4109263)
@MatthewPhillips,
In the real world the HTML output is not like JSON or XML as you told.
It is used to show data to a human and most of the time it contains a lot of elements that are not related with the resource data even if it is not representing more than a resource in the same page.
The interaction with a human doesn't happen in the same way as with another system.
Re:Rethinking web API development
on Wednesday June 13, 2012 @02:10PM (#4107446)
Matt, now I'm working only with API and I couldn't agree more with you.
Last year I worked with a very big and monolithic Rails app and all the time I was wondering about move it for services but it wasn't possible.
I'm almost convinced that we can write service layers with a very consistent API and use Rails to consume it as a client. The HTML interface should be only another client.