Skip to content

Instantly share code, notes, and snippets.

@russellbodine
russellbodine / gist:ad03c78cf15325ff1bdb29fb6fab1ee5
Last active May 31, 2017 19:24
Filter/hash endpoints for permalink Creation
Documenting 2 endpoints for permalink creation.
Filter endpoint used to create hash.
POST to:
{{url}}/api/v1/references/filter/
BODY:
{
"data": {"test" : "test4"} #whatever filter json u want goes as the body!!!!
@russellbodine
russellbodine / gist:287243c211ad59bebda701c8d9e0498f
Last active June 7, 2017 12:09
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)

Retrieve agency

Route: api/v2/references/agency/:id

Method: GET

This route sends a request to the backend to retrieve an agency.

PARAMETER

Geo Locate Endpoint

This route sends a request to the backend to retrieve a single award's data.

Change requested: add location search and result

Route: api/v1/references/locations/geocomplete/

@russellbodine
russellbodine / Budget_Authority_Agency.MD
Last active June 22, 2017 21:03
Budget authority for agency (v2)

Retrieve agency

Route: /api/v2/financial_balances/agencies/?fiscal_year=2017&funding_agency_id=246

Method: GET

This route sends a request to the backend to retrieve an agency.

PARAMETER

@russellbodine
russellbodine / MetaData.md
Last active June 30, 2017 13:30
Meta Data

V1 API RESPONSE

"page_metadata": {

    "count": 5,

    "page": 1,

"has_next_page": false,

Retrieve NAICS from the autocomplete text box

Route: /api/v2/autocomplete/naics/

Method: POST

This route sends a request to the backend to retrieve a partial or complete matching the specified search text.

Request example

Retrieve PSC from the autocomplete text box

Route: /api/v2/autocomplete/PSC/

Method: POST

This route sends a request to the backend to retrieve a partial or complete matching the specified search text.

Request example

Federal Account Object Class

Route: /api/v2/federal_accounts/object_class/:federal_account_id

Method: GET

This route sends a request to the backend to retrieve relevent Object Classes for the specified Federal Account

Response (JSON)

Retrieve all toptier agencies data
Route: api/v2/references/toptier_agencies/
Method: GET
This route sends a request to the backend to retrieve an agency.
EXAMPLE RESULTS