public IRestResource GetField(string fieldName) { // TODO sub collections and items? // Helper in ScalarFieldHelper, but that's the engine.. return(new RestClientScalar(HttpClientCreator, UriUtilities.AppendPath(Path, fieldName))); }
public IRestItem GetItem(string identifier, string identifierName = null) { if (identifierName != null) { identifier = identifierName + "=" + identifier; // TODO: or even a / char? } return(new RestClientItem(HttpClientCreator, UriUtilities.AppendPath(Path, identifier))); }