add put and post to connectorApi prototype