fedspendingtransparency / usaspending-api

Server application to serve U.S. federal spending data via a RESTful API
https://www.usaspending.gov
Creative Commons Zero v1.0 Universal
309 stars 112 forks source link

[Dev-11101] add duns recipient autocomplete #4137

Closed ayubshahab closed 3 months ago

ayubshahab commented 4 months ago

Description: To support recipient autocomplete in Advanced Search 2.0 we need to add the ability to search for recipients by their DUNS value. Currently only Recipient Name, UEI, and Recipient Level are supported by API endpoint using Elasticsearch so the /api/v2/autocomplete/recipient is updated to allow duns to be searched as well as be returned in the response object.

Technical details: The technical details for the knowledge of other developers. Any detailed caveats or specific deployment steps should be outlined here.

Requirements for PR merge:

  1. [x] Unit & integration tests updated
  2. [x] API documentation updated
  3. [x] Necessary PR reviewers:
    • [x] Backend
  4. [x] Appropriate Operations ticket(s) created
  5. [x] Jira Ticket DEV-11101:
    • [x] Link to this Pull-Request

Area for explaining above N/A when needed: