me-api icon indicating copy to clipboard operation
me-api copied to clipboard

Multiple integrations per endpoint.

Open danfang opened this issue 10 years ago • 2 comments

Let's say you have 3 places people can send you money - Coinbase, Blockchain, and Google Wallet. Ideally, you'd want to have a /pay endpoint that incorporates each of these services.

This might require a complete rethinking of the way integrations are done. Possibly, each integration should return a value instead of returning a response. With promises, you could set up modules.json as path: "/pay", "modules": ["coinbase": {}, "blockchain": {}, "wallet": {}] and perform a for loop on each module, combine the returned values using Promises, and return that aggregate object.

Thoughts?

danfang avatar May 28 '15 20:05 danfang

I like the idea. It gives more flexibility to exact endpoint configuration.

therebelrobot avatar Jun 25 '15 17:06 therebelrobot

:+1: from me too: I've wanted to integrate several services under /music too.

philipsd6 avatar Oct 13 '15 16:10 philipsd6