[CODE] Create REST API
billimarie opened this issue · 4 comments
- Node.js RESTful API
- beyond prototype: Amazon API Gateway
- Postman
- MongoDB
Please explain from where we need to access the data for the API? I'm willing to submit a pull request for this issue.
Hi @Vishwajeetsinh98, thanks for checking this out.
Unfortunately there is no complete data source--we are just making our own based on manual research. You can see our results here (on an older branch): https://github.com/billimarie/light-pollution/blob/gh-pages/data/prosecutors.json
We're hoping to update this to something more elegant when we get more data. If you have any ideas, please feel free to submit a pull request. For now, the data we create is housed on mLab.com in JSON format:
{
"_id": {
"$oid": "5919ed1c734d1d1cd0be9d88"
},
"attorney-id": "ua-al-m",
"name": "A. Clark Morris",
"role": "U.S. Attorney",
"state": "Alabama",
"district": "Middle District of Alabama",
"appointed": "2017-03-11"
}
Is this still open?
Hi everyone,
This issue is now closed. Please see this pull request for more information: #27