Created basic api for communicating with remote resource