| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
To request data from the microservice, make an HTTP POST call to the /validate_csv endpoint. The request should specify the path to the CSV file that requires validation.
import requests
# Define the URL and the payload
url = 'http://127.0.0.1:5000/validate_csv'
payload = {
"file_path": "test.csv"
}
# Make the POST request
response = requests.post(url, json=payload)
# Print the response
print(response.json())pip install requests{
"valid": true,
"issues": []
}If there are issues, the response might look like:
{
"valid": false,
"issues": [
"Row 3 has incorrect number of columns.",
"Missing value in column 'price' at row 5."
]
}| Back | FazBrowse Home | New Git URL |