-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1585 from fedspendingtransparency/stg
Sprint 71 Deploy (stg->master)
- Loading branch information
Showing
41 changed files
with
743 additions
and
968 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...pending_api/api_docs/api_documentation/budget_functions/list_budget_function.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## List Budget Functions | ||
**Route:** `/api/v2/budget_functions/list_budget_functions/` | ||
|
||
**Method** `GET` | ||
|
||
This route sends a request to the backend to retrieve a list of all Budget Functions ordered by their title. | ||
|
||
|
||
## Response (JSON) | ||
|
||
**HTTP Status Code**: 200 | ||
|
||
``` | ||
{ | ||
"results": [ | ||
{ | ||
"budget_function_code": "000", | ||
"budget_function_title": "Governmental Receipts" | ||
}, | ||
{ | ||
"budget_function_code": "050", | ||
"budget_function_title": "National Defense" | ||
}, | ||
{ | ||
"budget_function_code": "150", | ||
"budget_function_title": "International Affairs" | ||
}, | ||
... | ||
] | ||
} | ||
``` | ||
|
||
**Response Key Descriptions** | ||
|
||
**budget_subfunction_title** - Title of the Budget Subfunction. | ||
|
||
**budget_subfunction_code** - Code for the Budget Subfunction. | ||
|
47 changes: 47 additions & 0 deletions
47
...ding_api/api_docs/api_documentation/budget_functions/list_budget_subfunction.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## List Budget Subfunctions | ||
**Route:** `/api/v2/budget_functions/list_budget_subfunctions/` | ||
|
||
**Method** `POST` | ||
|
||
This route sends a request to the backend to retrieve a list of all Budget Subfunctions that can be filtered by Budget Function, ordered by their title. | ||
|
||
### Request | ||
|
||
``` | ||
{ | ||
"budget_function":"050" | ||
} | ||
``` | ||
**Query Parameters Description** | ||
|
||
**budget_function** - `optional` - a string that contains the budget function code to filter by | ||
|
||
|
||
### Response (JSON) | ||
|
||
**HTTP Status Code**: 200 | ||
|
||
``` | ||
{ | ||
"results": [ | ||
{ | ||
"budget_subfunction_title": "Atomic energy defense activities", | ||
"budget_subfunction_code": "053" | ||
}, | ||
{ | ||
"budget_subfunction_title": "Defense-related activities", | ||
"budget_subfunction_code": "054" | ||
}, | ||
{ | ||
"budget_subfunction_title": "Department of Defense-Military", | ||
"budget_subfunction_code": "051" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
**Response Key Descriptions** | ||
|
||
**budget_subfunction_title** - Title of the Budget Subfunction. | ||
|
||
**budget_subfunction_code** - Code for the Budget Subfunction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
usaspending_api/api_docs/api_documentation/references/data_dictionary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
## [Data Dictionary](#data_dictionary) | ||
**Route:** `/api/v2/references/data_dictionary/` | ||
|
||
**Method:** `GET` | ||
|
||
This route takes no parameters and returns a JSON structure of the Schema team's Rosetta Crosswalk Data Dictionary | ||
|
||
### Request | ||
*Not Applicable* | ||
|
||
### Response (JSON) | ||
|
||
``` | ||
{ | ||
"rows": [ | ||
[ | ||
"Interstate Entity", | ||
"https://www.sam.gov", | ||
"Interstate Entity", | ||
"all_contracts_prime_awards_1.csv,\nall_contracts_prime_transactions_1.csv", | ||
"interstate_entity", | ||
null, | ||
null, | ||
null, | ||
null, | ||
"isinterstateentity", | ||
null | ||
], | ||
[ | ||
"Joint Venture Economically Disadvantaged Women Owned Small Business", | ||
"https://www.sam.gov OR List characteristic of the contractor such as whether the selected contractor is an Economically Disadvantaged Woman Owned Small Business or not. It can be derived from the SAM data element, 'Business Types'.", | ||
"Joint Venture Economically Disadvantaged Women Owned Small Business", | ||
"all_contracts_prime_awards_1.csv,\nall_contracts_prime_transactions_1.csv", | ||
"joint_venture_economic_disadvantaged_women_owned_small_bus", | ||
null, | ||
null, | ||
null, | ||
null, | ||
"isjointventureecondisadvwomenownedsmallbusiness", | ||
null | ||
] | ||
], | ||
"headers": [ | ||
{ | ||
"raw": "element", | ||
"display": "Element" | ||
}, | ||
{ | ||
"raw": "definition", | ||
"display": "Definition" | ||
}, | ||
{ | ||
"raw": "fpds_element", | ||
"display": "FPDS Element" | ||
}, | ||
{ | ||
"raw": "award_file", | ||
"display": "Award File" | ||
}, | ||
{ | ||
"raw": "award_element", | ||
"display": "Award Element" | ||
}, | ||
{ | ||
"raw": "subaward_file", | ||
"display": "Subaward File" | ||
}, | ||
{ | ||
"raw": "subaward_element", | ||
"display": "Subaward Element" | ||
}, | ||
{ | ||
"raw": "account_file", | ||
"display": "Account File" | ||
}, | ||
{ | ||
"raw": "account_element", | ||
"display": "Account Element" | ||
}, | ||
{ | ||
"raw": "legacy_award_element", | ||
"display": "Award Element" | ||
}, | ||
{ | ||
"raw": "legacy_subaward_element", | ||
"display": "Subaward Element" | ||
} | ||
], | ||
"metadata": { | ||
"download_location": "http://files.usaspending.gov/docs/DATA+Transparency+Crosswalk.xlsx", | ||
"total_rows": 393, | ||
"total_size": "116.52KB", | ||
"total_columns": 11 | ||
}, | ||
"sections": [ | ||
{ | ||
"colspan": 3, | ||
"section": "Schema Data Label & Description" | ||
}, | ||
{ | ||
"colspan": 6, | ||
"section": "USA Spending Downloads" | ||
}, | ||
{ | ||
"colspan": 2, | ||
"section": "Legacy USA Spending" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
|
||
### Errors | ||
Possible HTTP Status Codes: | ||
* 200 : Success | ||
* 204 : No data found in database | ||
* 500 : All other errors | ||
|
||
``` | ||
{ | ||
"detail": "Sample error message" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.