added csv view in api for rest