Elasticsearch IDs are lower case, but the GetById method does not take care of this in creating the id. While the dictionary field is Cancer.gov, when Cancer.gov is supplied to the API the dictionary parameter is not lower cased.
Steps to reproduce the issue
Run the API locally
Run curl -X GET "http://localhost:5000/Terms/Cancer.gov/Patient/en/44178" -H "accept: application/json"
See no result
Run curl -X GET "http://localhost:5000/Terms/cancer.gov/Patient/en/44178" -H "accept: application/json"
See a result
What's the expected result?
I expect the API would allow the dictionary name exactly as it is in the response data.
Issue description
Elasticsearch IDs are lower case, but the GetById method does not take care of this in creating the id. While the
dictionary
field isCancer.gov
, whenCancer.gov
is supplied to the API thedictionary
parameter is not lower cased.Steps to reproduce the issue
curl -X GET "http://localhost:5000/Terms/Cancer.gov/Patient/en/44178" -H "accept: application/json"
curl -X GET "http://localhost:5000/Terms/cancer.gov/Patient/en/44178" -H "accept: application/json"
What's the expected result?
What's the actual result?