REST APi for lightbase database