Route: /api/v2/award_spending/award_type
Method: GET
This route sends a request to the backend to retrieve awarded amounts for all award types for a specified awarding agency based on the fiscal year.
/api/v2/award_spending/award_type?fiscal_year=2017&awarding_agency_id=1
fiscal_year
- required - an integer representing the fiscal year to filter onawarding_agency_id
- required - an integer representing the toptier agency ID to filter on
HTTP Status Code: 200
"results":
[
{
"award_type": "Contracts",
"obligated_amount": "15000000000"
},
{
"award_type": "Grants",
"obligated_amount": "26000000000"
}
]
Possible HTTP Status Codes:
- 400 : Missing parameters
- 500 : All other errors
{
"message": "Sample error message"
}