Rest API generation for Koa