Rest api using happy