connect with REST API to GridFS