Skip to content

Commit

Permalink
Pushing up Test Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
manifestinteractive committed Feb 19, 2017
1 parent 12a8b7c commit 2b31b4f
Show file tree
Hide file tree
Showing 34 changed files with 21 additions and 435,735 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
6.9.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Civil Services Logo](docs/img/logo.png "Civil Services Logo")
![Civil Services Logo](https://cdn.civil.services/common/github-logo.png "Civil Services Logo")

Civil Services API
===
Expand Down
79 changes: 0 additions & 79 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -1741,85 +1741,6 @@ Get Location Specific Data using any combination of filters.
]
}

# Group Bills Endpoints

The following endpoints are for specific Campaign Zero Bills.

## Bills [/bills/?status={status}&progress={progress}&chamber={chamber}&state={state}&city={city}&billId={billId}&repId={repId}&sessionId={sessionId}&beforeDate={beforeDate}&afterDate={afterDate}]

Search Campaign Zero Bills

+ Parameters
+ status (optional, enum[string]) - Status of Bill ['considering','passed','failed']
+ Members
+ `considering`
+ `passed`
+ `failed`
+ progress (optional, enum[string]) - Whether this bill passing is Good or Bad ['good','bad']
+ Members
+ `good`
+ `bad`
+ chamber (optional, enum[string]) - Which Chamber of Congress this bill is for ['upper','lower']
+ Members
+ `upper`
+ `lower`
+ state (optional, string) - Two Letter US State Code Abbreviation ( ISO 3166 )
+ city (optional, string) - Specific City this Bill Belongs to
+ billId (optional, string) - Unique Bill ID from Open States ( required to get vote status )
+ repId (optional, string) - Unique Representative ID from Open States ( required to get vote status )
+ sessionId (optional, string) - Unique Session ID from Open States
+ beforeDate (optional, string) - Filter by Bills Created Before or On this Date
+ afterDate (optional, string) - Filter by Bills Created After or On this Date


### Get Bills [GET]

If your search contains a `billId` & `repId` we will check OpenStates.org for how the `repId` voted for the `billId`. Possible `vote` values are `unknown` ( default ), `supported` & `opposed`.

Voting Status for reps can only be checked if your search result is specific enough to return a single result for Upper and/or Lower chambers for the same State & Session ID for the provided `billId`.

+ Response 200 (application/json)

{
"error": false,
"errors": [],
"field_errors": {},
"meta": {
"total": 2,
"showing": 2,
"pages": 1,
"page": 1
},
"data": [
{
"vote": "supported",
"status": "passed",
"progress": "good",
"chamber": "upper",
"state": "FL",
"city": null,
"bill_id": "SB 1044",
"session_id": "2016",
"short_description": "ends civil asset forfeiture",
"long_description": null,
"details_url": "https://openstates.org/fl/bills/2016/SB1044/"
},
{
"vote": "supported",
"status": "passed",
"progress": "good",
"chamber": "lower",
"state": "FL",
"city": null,
"bill_id": "SB 1044",
"session_id": "2016",
"short_description": "ends civil asset forfeiture",
"long_description": null,
"details_url": "https://openstates.org/fl/bills/2016/SB1044/"
}
]
}

# Group Legislator Endpoints

The following endpoints convert location data into parameters that can fetch Legislators from Open States.
Expand Down
286 changes: 0 additions & 286 deletions app/api/v1/domain/bills.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/api/v1/domain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
* @type {object}
*/
module.exports = {
Bills: require('./bills'),
CityCouncil: require('./city_council'),
Category: require('./category'),
Email: require('./email'),
Geolocation: require('./geolocation'),
Profile: require('./profile'),
PoliceKillings: require('./police_killings'),
Search: require('./search'),
Settings: require('./settings'),
Tag: require('./tag'),
Expand Down
Loading

0 comments on commit 2b31b4f

Please sign in to comment.