Closed TinaMurimi closed 6 years ago
Ok. Will work on that.
@DavidLemayian If we check if the query is passed at base_api, we will miss out on returning all results for the doc_type.
@tinamorale I thought about it and search endpoint should return a null/fail for missing parameter/argument. If we'd like to return all results for the doc_type, it would be a different end-point.
What does this PR do?
If a doc_type is not provided or an unknown doc_type is provided, an error is raised because doc_type==None. This PR corrects this error.