added string representation of an api