Skip to content
Nico-GSPublic

About

SafetyNet Alerts

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SafetyNet Alerts

SafetyNet Alerts is an application that sends essential information to emergency services

API

Java 1.8 - Maven - Spring Boot

URL : http://localhost:8080/

Properties : src/main/resources/application.properties

Data File JSON

Source : src/main/resources/data/data.json

"persons":[

{ "firstName": "John", "lastName": "Boyd", "address": "1509 Culver St", "city": "Culver", "zip": "97451", "phone": "841-874-6512", "email": "jaboyd@email.com" },

Endpoints

GET

http://localhost:8080/firestation?stationNumber={station_number}

Return list of people covered by FireStation

http://localhost:8080/childAlert?address={address}

Return list of child(s) living at the address

http://localhost:8080/phoneAlert?firestation={firestation_number}

Return list of telephone number of the habitants covered by FireStation

http://localhost:8080/personInfo?firstName={firstName}&lastName={lastName}

Return : Name - Age - Address - Email - MedicalRecord of a person

http://localhost:8080/communityEmail?city={city}

Return list of emails of all the habitants by city

http://localhost:8080/flood/stations?stations={list_of_station_numbers}

Return list of households covered by station

http://localhost:8080/fire?address={address}

Return list of habitants covered FireStation number : Name - Phone - Age - MedicalRecord

POST / PUT / DELETE

JSON Body for /person

{ "firstName":"Marcel", "lastName":"Denis", "address":"1509 Culver St", "city":"Culver", "zip":"97451", "phone":"0642876413", "email":"nicolas@email.com" }

JSON Body for /firestation

{ "address":"Rue de la Paix", "station":"2" }

JSON Body for /medicalRecord

{ "firstName":"John", "lastName":"Boyd", "birthdate":"03/03/1993", "medications":["aznol:350mg", "hydrapermazol:100mg"], "allergies":["nillacilan"] }

About

SafetyNet Alerts

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages