Skip to content

Instantly share code, notes, and snippets.

Spending By Award

Route: /api/v2/search/spending_by_award/

Method: POST

This route takes award filters and fields, and returns the fields of the filtered awards.

Request

field: Defines what award variables are returned.

Spending By Award Count

Route: /api/v2/search/spending_by_award_count/

Method: POST

This route takes award filters, and returns the number of awards in each award type (Contracts, Loans, Gran.

Request

filter: Defines how the awards are filtered. The filter object is defined here.

Download v2 API

/v2/bulk_download/awards (POST)

Request

POST a JSON body:

{

Testing Workflow

Initial steps

  1. Find Bug
  2. Triage (check with a dev/expert to see if it’s an error)
  3. Bug added to Feedback board
  4. Assign priority with product owner
  5. Bug Swat Team formed
  6. Fix Bug

Federal Account Description

Route: /api/v2/federal_accounts/<PK>/description/

GONE

Method: GET

This route takes a Federal Account DB ID and returns Description and summary fields.

Federal Account Fiscal Year Snapshot

Route: /api/v2/federal_accounts/<PK>/fiscal_year_snapshot/

Method: GET

This route takes a federal_account DB ID and returns the data reqired to visualized the fiscal_year_snapshot graphic

Response (JSON)

Federal Account Spending Over Time

Route: /api/v2/federal_accounts/<PK>/spending_over_time/

Method: POST

This route takes a federal_account DB ID and returns the data reqired to visualized the spending over time graphic

Request

Federal Account Spending By Category

Route: /api/v2/federal_accounts/<PK>/spending_by_category/

Method: POST

This route takes a federal_account DB ID and returns the data reqired to visualized the Spending By Category graphic.

Request

Federal Account Spending By Award Count

Route: /api/v2/federal_accounts/<PK>/spending_by_award_count/

Method: GET

This route takes a federal_account DB ID and returns the data reqired to visualized the Award Count values.

Request

filter: Defines how the awards are filtered. The filter object is defined here.

Federal Account Spending By Award

Route: /api/v2/federal_accounts/<PK>/spending_by_award/

Method: GET

This route takes a federal_account DB ID and returns the data reqired to visualized the Award Table

Request