Prototyping REST API using cowboy_rest