NCIOCPL / glossary-api

API for Dictionary of Cancer Terms, Dictionary of Genetics Terms, and other Glossary documents.
0 stars 5 forks source link

GetById is unable to return items for dictionary Cancer.gov #82

Closed bryanpizzillo closed 4 years ago

bryanpizzillo commented 4 years ago

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 is Cancer.gov, when Cancer.gov is supplied to the API the dictionary parameter is not lower cased.

Steps to reproduce the issue

  1. Run the API locally
  2. Run curl -X GET "http://localhost:5000/Terms/Cancer.gov/Patient/en/44178" -H "accept: application/json"
    • See no result
  3. 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?

What's the actual result?