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
310 stars 113 forks source link

[DEV-9224] Spending by Category Recipient endpoint trailing slash fix #4122

Closed ayubshahab closed 4 months ago

ayubshahab commented 4 months ago

Description: We received a report from API user stating that htey were getting 404 errors when trying to query the api/v2/search/spending_by_category/recipient/ endpoint. The endpoint functions correctly when querying it without the trailing slash - i.e. api/v2/search/spending_by_category/recipient. A conditional argument regarding the trailing slash was added to the regex.

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-9224:
    • [x] Link to this Pull-Request

Area for explaining above N/A when needed: