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
302 stars 108 forks source link

Ability to filter using agency, sub_agency, office codes instead of names #1939

Open nhinze opened 5 years ago

nhinze commented 5 years ago

New feature suggestion: the filter object should be able to accept agency, sub_agency and office codes. This would simplify queries, because the agency, sub_agency and offices names are capitalized in the CSV output file. Using these capitalized names in the filter object does not work. For example, filtering by sub_agency "MARITIME ADMINISTRATION" does not work, but "Maritime Administration" works.

Right now, I have to use the agency autocomplete end point to search for the proper capitalization of the agency name before using the filter object.

It should work the same way as with the NAICS and PSC codes for example.

lisaam commented 5 years ago

Thank you for the feature suggestion. We have passed on the feedback to the team for evaluation. You can follow progress on this request here: https://federal-spending-transparency.atlassian.net/browse/DEV-3160