NCIOCPL / clinical-trials-listing-api

API for Clinical Trial (Dynamic) Listing Pages
2 stars 2 forks source link

Implement the LabelLookup Controller Get method #10

Closed blairlearn closed 3 years ago

blairlearn commented 3 years ago

As an application developer, I want to retrieve a LabelInformation document by either its pretty-url name or its identifer string, so that I can lookup label..

ESTIMATE TBD

Acceptance Criteria

Scenario: Get label by specifying either its pretty-url or its identifier.
  Given path '/label-lookup', searchString
  When  method get
  Then  status 200
    And match response == read ('expected result file')

Examples:
   | searchString    | expected               |
   | basic-science   | pretty-url-result.json |
   | supportive_care | identfier-result       |

Scenario: Get label with invalid string.
  Given path '/label-lookup', 'chicken'
  When  method get
  Then  status 404

Resources:

Notes


Solution

Prerequisites

Tasks

Technical Notes

sarinapadilla commented 3 years ago

Closed by https://github.com/NCIOCPL/cts-dynamic-listing-api/commit/0dbd4ab58b8cfba25f6caeeb009a4078305166ee