WAMP as a public API

#1

Is WAMP a suitable medium for delivering a publicly consumable API? For example, I build a web service framework over WAMP and then expose APIs for public use. My main concern is that RPC APIs are fairly rigid. Would it be better to expose something a little more semi-structured? Any suggestions? Companies like twitter/pinterest/etc seem to heavily favour REST for third party APIs.

0 Likes

#2

Is WAMP a suitable medium for delivering a publicly consumable API? For

I've heard of at least Bitcoin exchanges that expose their public API via WAMP.

example, I build a web service framework over WAMP and then expose APIs
for public use. My main concern is that RPC APIs are fairly rigid. Would

Why rigid? This all depends on the payload spectrum you allow on a procedure. You can have a WAMP procedure that is able to digest any kind of arguments.

You can also mimick a REST API in WAMP:

com.myapp.create(<object URI>, <value 1>, ..)
com.myapp.update(<object URI>, <value 1>, ..)
com.myapp.delete(<object URI>)
com.myapp.read(<object URI>)

or

com.myapp.<object ID>.create(<value 1>, ..)
com.myapp.<object ID>.update(<value 1>, ..)
com.myapp.<object ID>.delete()
com.myapp.<object ID>.read()

it be better to expose something a little more semi-structured? Any
suggestions? Companies like twitter/pinterest/etc seem to heavily favour
REST for third party APIs.

REST is certainly the least common denominator. Anything can speak REST. So if you are after maximum reach, REST is certainly at advantage.

On the other hand, REST does not have the feature set and real-time capabilities as WAMP has.

/Tobias

···

Am 22.11.2014 18:25, schrieb David Chappelle:

0 Likes

#3

FWIW this is exactly what we’re planning to do for our request/response “synchronous” REST-like WAMP API…

···

On Saturday, November 22, 2014 3:40:08 PM UTC-5, Tobias Oberstein wrote:

You can also mimick a REST API in WAMP:

com.myapp.create(, <value 1>, …)

com.myapp.update(, <value 1>, …)

com.myapp.delete()

com.myapp.read()

/Tobias

0 Likes