moving mock api to a separate file