An application that allows users to report incidences of corruption(Redflags) and to request for assistance on matters of public good(Interventions).
User
Click here to access API documentation
What you need to get started:
- Python 3.6.5
- Flask_RESTful
- PostgresQl
$ git clone https://github.com/lupamo3/iReporter-Flask.git
$ cd iReporter-Flask
$ Virtual venv python=[Python-Version]
$ Pip install auto-env
pip install -r requirements.txt
- nosetests --with-coverage --cover-package=app
- py.test -v --cov-report term-missing --cov app
- Run iReporter on your postman to test the URLs
or use:
URL | METHOD | MESSAGE |
---|---|---|
api/v2/incidents/ | GET | Get all Incidence records. |
api/v2/incidents/ | POST | Create a Incidence record. |
api/v2/incidents/int:id | GETint:id | Get Incident by id |
api/v2/incidents/int:id | DELETEint:id | Delete a specific incident record |
api/v2/incidents/int:id/comment | PATCHint:id/comment | Patch a comment incident record |
api/v2/incidents/int:id/location | PATCHint:id/location | Patch a location incident record |
api/v2/incidents/int:id/status | PATCHint:id/status | Patch a status record. |
api/v2/signup | POST | Create i-Reporter account. |
api/v2/users | GET | Get all Users |
api/v2/userss/int:id | GETint:id | Get a user by id |
- Feel free to reach me via email and to fork this project
- Any feedback would be appreciated.
- The Pull requests have bit by bit application documentation
- Copyright 2018 © iReporter.