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.
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 need government intervention.
Site has been built with.
REQUESTS | APP ROUTES | FUNCTION | ROLE |
---|---|---|---|
GET | /api/v1/ | Default/Home Page. | All |
GET | /api/v1/red-flags | Fetch all red-flags records. | User |
GET | /api/v1/auth/users | Get all app users. | Admin |
GET | /api/v1/auth/users/[user_id] | Get a single user details | Admin |
GET | /api/v1/red-flags/[red_flag_id] | Fetch a specific red-flag by id. | User |
GET | /api/v1/auth/users/[user_id]/red-flags | Fetch a specific red-flag by id. | User |
PATCH | /api/v1/red-flags/[red_flag_id]/location | Edit/Change location of red-flag. | User |
PATCH | /api/v1/red-flags/[red_flag_id]/comment | Edit/Change comment of red-flag. | User |
PATCH | /api/v1/red-flags/[red_flag_id]/status | Change status of red-flag. | Admin |
DELETE | /api/v1/red-flags/[red_flag_id] | Delete red-flag. | User |
POST | /api/v1/red-flags | Create a red-flag record. | User |
POST | /api/v1/auth/signup | Register for an account as a user. | All |
POST | /api/v1/auth/login | Log into app account. | All |
cd ireport-api
virtualenv venv
venv\Scripts\activate
pip install -r requirements.txt
git checkout develop
Inside the iReport-api folder.
python run.py
pytest --cov=.