-
Notifications
You must be signed in to change notification settings - Fork 69
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 #818 from fedspendingtransparency/staging
Prod deploy: Staging -> Master
- Loading branch information
Showing
56 changed files
with
1,553 additions
and
2,619 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
FORMAT: 1A | ||
HOST: https://api.usaspending.gov | ||
|
||
# Award Profile | ||
|
||
These endpoints are used to power USAspending.gov's award profile pages. This data can be used to view details about a specific award. | ||
|
||
# Group Tables | ||
|
||
These endpoints support the tables on the individual Award Profile pages. | ||
|
||
## SubAwards [/api/v2/subawards/] | ||
|
||
This endpoint returns a list of sub-awards, their amount, action date, recipient name, and description. | ||
|
||
### SubAwards [POST] | ||
|
||
+ Request (application/json) | ||
+ Attributes (object) | ||
+ award_id: 123 (optional, string) | ||
The internal id of the award to filter on. If not included, all sub-awards are returned. | ||
+ limit: 15 (optional, number) | ||
The number of results to include per page. | ||
+ Default: 10 | ||
+ page: 1 (optional, number) | ||
The page of results to return based on the limit. | ||
+ Default: 1 | ||
+ sort: subaward_number (optional, enum[string]) | ||
The field results are sorted by. | ||
+ Default: subaward_number | ||
+ Members | ||
+ subaward_number | ||
+ description | ||
+ action_date | ||
+ amount | ||
+ recipient_name | ||
+ order: desc (optional, string) | ||
The direction results are sorted by. `asc` for ascending, `desc` for descending. | ||
+ Default: desc | ||
|
||
+ Response 200 (application/json) | ||
+ Attributes | ||
+ results (array[SubAwardResult], fixed-type) | ||
+ page_metadata (PageMetaDataObject) | ||
|
||
## Transactions [/api/v2/transactions/] | ||
|
||
This endpoint returns a list of transactions, their amount, type, action date, action type, modification number, and description. | ||
|
||
### Transactions [POST] | ||
|
||
+ Request (application/json) | ||
+ Attributes (object) | ||
+ award_id: 123 (optional, string) | ||
The internal id of the award to filter on. If not included, all transactions are returned. | ||
+ limit: 15 (optional, number) | ||
The number of results to include per page. | ||
+ Default: 10 | ||
+ page: 1 (optional, number) | ||
The page of results to return based on the limit. | ||
+ Default: 1 | ||
+ sort: action_date (optional, enum[string]) | ||
The field results are sorted by. | ||
+ Default: action_date | ||
+ Members | ||
+ modification_number | ||
+ action_date | ||
+ federal_action_obligation | ||
+ face_value_loan_guarantee | ||
+ original_loan_subsidy_cost | ||
+ action_type_description | ||
+ description | ||
+ order: desc (optional, string) | ||
The direction results are sorted by. `asc` for ascending, `desc` for descending. | ||
+ Default: desc | ||
|
||
+ Response 200 (application/json) | ||
+ Attributes | ||
+ results (array[TransactionResult], fixed-type) | ||
+ page_metadata (PageMetaDataObject) | ||
|
||
# Data Structures | ||
|
||
## SubAwardResult (object) | ||
+ id: `1` (required, string) | ||
The internal sub-award id. | ||
+ subaward_number: `2-A` (required, string) | ||
The sub-award id. | ||
+ description: description (required, string) | ||
+ action_date: `1999-01-15` (required, string) | ||
Action date in the format `YYYY-MM-DD`. | ||
+ amount: 1234.56 (required, number) | ||
Monetary value of the sub-award. | ||
+ recipient_name: Recipient A (required, string) | ||
|
||
## TransactionResult (object) | ||
+ id: `1` (required, string) | ||
The internal transaction id. | ||
+ type: A (required, string) | ||
Award type code | ||
+ type_description: BPA (required, string) | ||
+ action_date: `1999-01-15` (required, string) | ||
Action date in the format `YYYY-MM-DD`. | ||
+ action_type: C (required, string) | ||
Action type code | ||
+ action_type_description: description (required, string) | ||
+ modification_number: `0` (required, string) | ||
+ description: MANAGEMENT AND OPERATIONS (required, string) | ||
+ federal_action_obligation: 1234.56 (required, number, nullable) | ||
Monetary value of the transaction. Null for results with award type codes that correspond to loans. | ||
+ face_value_loan_guarantee: 1234.56 (required, number, nullable) | ||
Face value of the loan. Null for results with award type codes that **do not** correspond to loans. | ||
+ original_loan_subsidy_cost: 234.12 (required, number, nullable) | ||
Original subsidy cost of the loan. Null for results with award type codes that **do not** correspond to loans. | ||
|
||
## PageMetaDataObject (object) | ||
+ page: 1 (required, number) | ||
+ hasNext: false (required, boolean) | ||
+ hasPrevious: false (required, boolean) |
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
58 changes: 58 additions & 0 deletions
58
src/_scss/pages/explorer/detail/_unreportedErrorScreen.scss
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,58 @@ | ||
.explorer-unreported { | ||
@include display(flex); | ||
@include justify-content(center); | ||
@include align-items(center); | ||
margin: rem(50) 0 rem(15) 0; | ||
|
||
.explorer-unreported__top { | ||
display: flex; | ||
padding-bottom: rem(20); | ||
} | ||
|
||
.explorer-unreported__icon { | ||
margin-right: rem(10); | ||
@include align-self(center); | ||
|
||
svg { | ||
width: rem(30); | ||
height: rem(30); | ||
fill: #FFB800;; | ||
} | ||
} | ||
|
||
.explorer-unreported__box { | ||
max-width: rem(720); | ||
padding: rem(30) rem(30) rem(30) rem(30); | ||
height: auto; | ||
border: 1px solid #FFB800; | ||
background-color: #FFFCF6; | ||
} | ||
|
||
.explorer-unreported__header { | ||
font-size: rem(24); | ||
margin: 0; | ||
font-weight: 600; | ||
padding-left: rem(20); | ||
line-height: 1.2; | ||
} | ||
|
||
.explorer-unreported__info { | ||
font-weight: 600; | ||
font-size: rem(16); | ||
} | ||
|
||
.explorer-unreported__body { | ||
padding-left: rem(62); | ||
} | ||
|
||
.explorer-unreported__list { | ||
padding-left: rem(20); | ||
margin-top: rem(10); | ||
font-size: rem(16); | ||
line-height: 10px; | ||
|
||
li { | ||
margin-bottom: 0; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.