Adding mbgs to the rest api. (not tested)