Page 1 of 1

O API — an alternative to REST APIs

Posted: Sun Feb 25, 2018 11:23 am
by cnavarro

Re: O API — an alternative to REST APIs

Posted: Wed May 02, 2018 10:55 am
by Carlos Mora
It looks like a mix of RPC and REST.
REST is a convention, and shapes and exploits resources using standards. Given an URL that exposes a resource, you can tell how the resource can be consumed.
With modern tools, and thanks to that convention, it is not required to explicitly write every single route for a REST service. As an example, in Laravel you write:

Code: Select all

Route::Resource(''/api/user/:userId/cart', UserCartController::class) and you are done! 
In the other side, in Javascript you can use things like RestOMatic, that builds the whole service to consume a REST service in 2 lines.

With the OApi any of the methods are predictable, you write every single one in both sides of the application, going against the principle "Convention over Configuration", http://rubyonrails.org/doctrine/#conven ... figuration
For complex resources, GraphQL looks a better alternative, givin the power of SQL-like querys over the same path REST uses.

KR

Re: O API — an alternative to REST APIs

Posted: Wed May 02, 2018 11:14 am
by Carlos Mora
BTW, in the photo, there are at least 2 missing boxes. ¿Can you tell wich ones?

Re: O API — an alternative to REST APIs

Posted: Wed May 02, 2018 1:07 pm
by cnavarro
Carlos Mora wrote:BTW, in the photo, there are at least 2 missing boxes. ¿Can you tell wich ones?
Carlos, no entiendo a qué foto te refieres

Re: O API — an alternative to REST APIs

Posted: Wed May 02, 2018 1:34 pm
by Carlos Mora
La del articulo