Simple web app that lets citizens report cases of corruption to the appropriate authorities. Users can also report on things that needs government intervention.
Install Node Js and Git
To run:
$ git clone https://github.com/valenstical/ireporter.git
$ cd ireporter
$ npm install
$ npm start
$ npm test
View the pivotal tracker stories for this project here https://www.pivotaltracker.com/projects/2227161
You can see a hosted version of the frontend at https://valenstical.github.io/ireporter/
The api endpoints are hosted on heroku. Visit https://ireporter-nigeria.herokuapp.com/ to make requests to endpoints.
All API endpoint must use the api/v1 prefix.
Endpoint | Functionality |
---|---|
GET /red-flags | Get all red-flags reports |
GET /red-flags/\ |
Get the details of a specific red-flag |
PATCH /red-flags/\ |
Edit the location of a red-flag report |
PATCH /red-flags/\ |
Edit the comment of a red-flag report |
DELETE /red-flags/\ |
Delete a red-flag |
GET /interventions | Get all interventions reports |
GET /interventions/\ |
Get the details of a specific intervention |
PATCH /interventions/\ |
Edit the location of an intervention report |
PATCH /interventions/\ |
Edit the comment of an intervention report |
DELETE /interventions/\ |
Delete an intervention |
POST /interventions/ | Creates a new intervention record |
POST /red-flags/ | Creates a new red-flag record |
PATCH /interventions/\ |
Change the status of an intervention report |
PATCH /red-flags/\ |
Change the status of a red-flag report |
https://app.swaggerhub.com/apis/andela51/1-i_reporter/1.0
Okosun Valentine Ejodamen