Skip to content

Instantly share code, notes, and snippets.

@russellbodine
Last active June 7, 2017 12:09
Show Gist options
  • Select an option

  • Save russellbodine/287243c211ad59bebda701c8d9e0498f to your computer and use it in GitHub Desktop.

Select an option

Save russellbodine/287243c211ad59bebda701c8d9e0498f to your computer and use it in GitHub Desktop.
1316 /financial_spending/object_class/
Retrieve awarded amounts for all award types
Route: /financial_spending/object_class/
Method: POST
This route sends a request to the backend to retrieve Spending amounts for all types for a specified toptier agency based on the fiscal year.
Body (JSON)
{
"fiscal_year": 2017,
"funding_agency_id": 1
}
Body Description
fiscal_year - required - an integer representing the fiscal year to filter on
funding_agency_id - required - an integer representing the toptier agency ID to filter on
Response (JSON)
"results":
[
{
"major_object_class_code": "20",
"major_object_class_name": "Contractual services and supplies",
"obligated_amount": "174118741.57"
},
{
"major_object_class_code": "10",
"major_object_class_name": "Personnel compensation and benefits",
"obligated_amount": "231533798.05"
}, …
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment