adding to restapi