iReporter enables any/every citizen to bring any form of corruption to the notice of appropriate authorities and the general public. Users can also report on things that needs government intervention
Things you need to run the application;
- Requirements
- virtual environment
python3 -m venv venv
pip install -r requirements.txt
Clone my repository;
git clone https://github.com/SherylWaga/API.git
You can run the urls on postman
| Method | Url | Description |
|---|---|---|
| POST | /api/v2/users | user registration |
| POST | /api/v2/users/login | User login |
| POST | /api/v2/incidents | Create an Instance i.e Redflag or Intervention |
| GET | /api/v2/incidents | View all instances i.e Redflags and Interventions |
| GET | /api/v2/incidents/1 | View a specific incident i.e Redflag or Intervention |
| DELETE | /api/v2/incidents/1 | Delete a specific incident i.e Redflag or Intervention |
| PUT | /api/v2/incidents/1 | Edit a specific incident i.e Redflag or Intervention location or comment |
| PATCH | /api/v2/incidents/1 | An admin user can edit a specific incident i.e Redflag or Intervention status |