Describe the bug
The API doc informs users that "name" and "contact_email" are the required body fields, however in the code an undocumented "url" field is also required.
To Reproduce
import requests
base_url = "http://127.0.0.1:5001/api/v1/"
url = base_url + "sources"
payload = {
"name": "Testy McTestface",
"contact_email": "testy.mctestface@gmail.com"
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"Authorization": "Bearer {0}".format(token)
}
response = requests.post(url, headers=headers, json=payload)
returns error
{
"message": "Failed to create source. Please include all of the following",
"status": "error"
}
@DMalone87
Describe the bug
The API doc informs users that "name" and "contact_email" are the required body fields, however in the code an undocumented "url" field is also required.
To Reproduce
returns error
@DMalone87