Using rabl to generate API