[erlang-questions] Code structure for webmachine/cowboy with versioned API

Jesper Louis Andersen <>
Mon Mar 7 12:59:34 CET 2016

On Mon, Mar 7, 2016 at 8:49 AM, Torben Hoffmann <> wrote:

> If I dispatch to a version generic handle module I can - potentially -
> reuse code that is common across api versions.

Can you map API version 1 into API version 2 in any way? If so, a way to
handle the problem is simply to shim Version 1 and transform it to a
Version 2 query and then run with the handler of Version 2.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160307/35faa905/attachment.html>

More information about the erlang-questions mailing list