Skip to content

Commit b177160

Browse files
authored
Merge pull request #3021 from fedspendingtransparency/staging
Sprint 127 Prod Deploy (w/o Warmfixes)
2 parents 5438e75 + 9c13f94 commit b177160

File tree

100 files changed

+3506
-971
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+3506
-971
lines changed

usaspending_api/accounts/v2/filters/account_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
get_submission_ids_for_periods,
4848
)
4949

50-
AWARD_URL = f"{HOST}/#/award/" if "localhost" in HOST else f"https://{HOST}/#/award/"
50+
AWARD_URL = f"{HOST}/award/" if "localhost" in HOST else f"https://{HOST}/award/"
5151

5252

5353
def account_download_filter(account_type, download_table, filters, account_level="treasury_account"):

usaspending_api/api_contracts/contracts/v2/download/count.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Returns the number of transactions that would be included in a download request
4848
+ `calculated_transaction_count` (required, number)
4949
The calculated count of all transactions which would be included in the download files.
5050
+ `maximum_transaction_limit` (required, number)
51-
The current allowed maximum number of transactions in a row-limited download. Visit https://www.usaspending.gov/#/download_center/custom_award_data to download larger volumes of data.
51+
The current allowed maximum number of transactions in a row-limited download. Visit https://www.usaspending.gov/download_center/custom_award_data to download larger volumes of data.
5252
+ `messages` (optional, array[string])
5353
An array of warnings or instructional directives to aid consumers of this endpoint with development and debugging.
5454
+ Body

usaspending_api/api_contracts/contracts/v2/reporting/agencies/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This endpoint returns an overview list of government agencies submission data.
3636
+ Members
3737
+ `toptier_code`
3838
+ `current_total_budget_authority_amount`
39-
+ `missing_tas_accounts_total`
39+
+ `tas_accounts_total`
4040
+ `missing_tas_accounts_count`
4141
+ `agency_name`
4242
+ `obligation_difference`
@@ -82,8 +82,8 @@ This endpoint returns an overview list of government agencies submission data.
8282
"missing_tas_accounts_count": 20
8383
},
8484
"obligation_difference": 436376232652.87,
85-
"unlinked_contract_award_count": 0,
86-
"unlinked_assistance_award_count": 0,
85+
"unlinked_contract_award_count": 3,
86+
"unlinked_assistance_award_count": 2,
8787
"assurance_statement_url": "https://files-nonprod.usaspending.gov/agency_submissions/Raw%20DATA%20Act%20Files/2020/P09/075%20-%20Department%20of%20Health%20and%20Human%20Services%20(HHS)/2020-P09-075_Department%20of%20Health%20and%20Human%20Services%20(HHS)-Assurance_Statement.txt"
8888
},
8989
{
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FORMAT: 1A
2+
HOST: https://api.usaspending.gov
3+
4+
# Agencies' Unlinked Awards [/api/v2/reporting/agencies/{toptier_code}/{fiscal_year}/{fiscal_period}/unlinked_awards/{type}/]
5+
6+
This endpoint is used to power USAspending.gov's About the Data \| Agencies unlinked data modals.
7+
8+
## GET
9+
10+
This endpoint returns the number of unlinked and linked awards for the agency in the provided fiscal year and period.
11+
12+
+ Parameters
13+
+ `toptier_code`: `020` (required, string)
14+
The specific agency code.
15+
+ `fiscal_year`: 2020 (required, number)
16+
The fiscal year of the submission
17+
+ `fiscal_period`: 10 (required, number)
18+
The fiscal period of the submission. valid values: 2-12 (2 = November ... 12 = September)
19+
For retrieving quarterly submissions, provide the period which equals 'quarter * 3' (e.g. Q2 = P6)
20+
+ `type`: `assistance` (required, enum[string])
21+
+ Members
22+
+ `assistance`
23+
+ `procurement`
24+
25+
+ Response 200 (application/json)
26+
27+
+ Attributes (object)
28+
+ `unlinked_file_c_award_count` (required, number)
29+
+ `unlinked_file_d_award_count` (required, number)
30+
+ `total_linked_award_count` (required, number)
31+
+ Body
32+
33+
{
34+
"unlinked_file_c_award_count": 123213,
35+
"unlinked_file_d_award_count": 43543,
36+
"total_linked_award_count": 12321312
37+
}

usaspending_api/api_contracts/contracts/v2/reporting/agencies/toptier_code/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This endpoint returns an overview of government agency submission data.
3232
+ `fiscal_period`
3333
+ `fiscal_year`
3434
+ `missing_tas_accounts_count`
35-
+ `missing_tas_accounts_total`
35+
+ `tas_accounts_total`
3636
+ `obligation_difference`
3737
+ `percent_of_total_budgetary_resources`
3838
+ `recent_publication_date`
@@ -78,8 +78,8 @@ This endpoint returns an overview of government agency submission data.
7878
"missing_tas_accounts_count": 9
7979
},
8080
"obligation_difference": 12581114.45,
81-
"unlinked_contract_award_count": 0,
82-
"unlinked_assistance_award_count": 0,
81+
"unlinked_contract_award_count": 2,
82+
"unlinked_assistance_award_count": 5,
8383
"assurance_statement_url": "https://files.usaspending.gov/agency_submissions/Raw%20DATA%20Act%20Files/2020/P07/020%20-%20Department%20of%20the%20Treasury%20(TREAS)/2020-P07-020_Department%20of%20the%20Treasury%20(TREAS)-Assurance_Statement.txt"
8484
},
8585
{

usaspending_api/api_contracts/contracts/v2/reporting/placeholder.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

usaspending_api/api_contracts/contracts/v2/subawards.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,37 @@ This endpoint returns a filtered set of subawards.
4747
+ `results` (required, array[SubawardResponse], fixed-type)
4848
+ `page_metadata` (required, PageMetadataObject)
4949

50+
+ Body
51+
52+
{
53+
"page_metadata": {
54+
"page": 1,
55+
"next": 2,
56+
"previous": null,
57+
"hasNext": true,
58+
"hasPrevious": false
59+
},
60+
"results": [
61+
{
62+
"id": 119270129,
63+
"subaward_number": "Z981002",
64+
"description": "DEVELOPMENT OF A SELF-SUSTAINED WIRELESS INTEGRATED STRUCTURAL HEALTH MONITORING SYSTEM FOR HIGHWAY BRIDGES",
65+
"action_date": "2011-10-27",
66+
"amount": 110000.0,
67+
"recipient_name": "URS GROUP, INC."
68+
}
69+
]
70+
}
71+
5072
# Data Structures
5173

5274
## SubawardResponse (object)
53-
+ `subaward_number` (required, string)
54-
+ `amount` (required, number)
5575
+ `id` (required, number)
76+
+ `subaward_number` (required, string)
77+
+ `description` (required, string)
5678
+ `action_date` (required, string)
79+
+ `amount` (required, number)
5780
+ `recipient_name` (required, string)
58-
+ `description` (required, string)
5981

6082
## PageMetadataObject (object)
6183
+ `page` (required, number)

usaspending_api/api_docs/management/commands/generate_model_markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Command(BaseCommand):
77
help = "Generates a markdown file of a model's fields and help text \
88
for use in documentation \
99
Usage: `python manage.py generate_model_markdown <MODEL>`"
10-
logger = logging.getLogger("console")
10+
logger = logging.getLogger("script")
1111

1212
friendly_names = {
1313
"ForeignKey": "Relation",

usaspending_api/api_docs/markdown/endpoints.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ The currently available endpoints are listed in the following table.
147147
|[/api/v2/reporting/agencies/overview/](/api/v2/reporting/agencies/overview/)|GET| Returns About the Data information about all agencies with submissions in a provided fiscal year and period|
148148
|[/api/v2/reporting/agencies/publish_dates/](/api/v2/reporting/agencies/publish_dates/)|GET| Returns submission publication and certification information about all agencies with submissions in a provided fiscal year and period|
149149
|[/api/v2/reporting/agencies/<TOPTIER_CODE\>/<FISCAL_YEAR\>/<FISCAL_PERIOD\>/submission_history/](/api/v2/reporting/agencies/020/2020/12/submission_history/)|GET| Returns a list of submission publication dates and certified dates for the provided agency for the provided fiscal year and period. |
150+
|[/api/v2/reporting/agencies/<TOPTIER_CODE\>/<FISCAL_YEAR\>/<FISCAL_PERIOD\>/unlinked_awards/<TYPE\>/](/api/v2/reporting/agencies/020/2020/12/unlinked_awards/procurement/)|GET| Returns counts of an agency's linked and unlinked awards for a given period. |
150151
|[/api/v2/search/new_awards_over_time/](/api/v2/search/new_awards_over_time/)|POST| Returns a list of time periods with the new awards in the appropriate period within the provided time range |
151152
|[/api/v2/search/spending_by_award/](/api/v2/search/spending_by_award/)|POST| Returns the fields of the filtered awards |
152153
|[/api/v2/search/spending_by_award_count/](/api/v2/search/spending_by_award_count/)|POST| Returns the number of awards in each award type (Contracts, IDV, Loans, Direct Payments, Grants, and Other) |

usaspending_api/api_docs/unused_markdown/request_recipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ POST
9696

9797
# Postman Collections <a name="postman"></a>
9898

99-
[Postman](https://www.getpostman.com/) is a free app for making easy API requests. You can also use it to import and inspect a collection of pre-generated API requests. [Here is a postman collection](https://raw.githubusercontent.com/fedspendingtransparency/usaspending-api/master/usaspending_api/static_doc_files/docs/usaspending_searchpage_postmancollection.json) you can use to see how we generate the visualizations on [the search page](https://www.usaspending.gov/#/search/).
99+
[Postman](https://www.getpostman.com/) is a free app for making easy API requests. You can also use it to import and inspect a collection of pre-generated API requests. [Here is a postman collection](https://raw.githubusercontent.com/fedspendingtransparency/usaspending-api/master/usaspending_api/static_doc_files/docs/usaspending_searchpage_postmancollection.json) you can use to see how we generate the visualizations on [the search page](https://www.usaspending.gov/search/).

0 commit comments

Comments
 (0)