Restapi: Moving restapi to b2deposit module