Skip to content

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

Notifications You must be signed in to change notification settings

SherylWaga/API2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iReporter Endpoints

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

Coverage Status Build Status

Prerequisites

Things you need to run the application;

  • Requirements
  • virtual environment

python3 -m venv venv

pip install -r requirements.txt

Installing

Clone my repository;

git clone https://github.com/SherylWaga/API.git

Endpoints

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages