Skip to content

Ride-For-Life-1-2020/Back_End

Repository files navigation

Back_End For Ride For Life

PVD LINK


### EXAMPLE: https://rideforlifebackend.herokuapp.com/api/patient/signup

Driver Endpoints

URL METHOD Object Example Authorization?
/api/drivers/signup POST FullName (Required),
UserName (Required & Unique),
Password (Required),
PhoneNumber (Integer (10 Char Max) & Required),
Shift,
Price (Integer),
Email,
City_ID (Required/Integer),
Vin,
LicensePlate,
Mileage (Integer),
VehicleModel,
Year,
VehicleMake,
PolicyNumber(Integer),
InsuranceCompany,
LicenseNumber,
DateOfBirth
No
/api/drivers/login POST UserName (Required),
Password (Required)
No
/api/drivers GET Requires: 'authorization' header
/api/drivers/:UserName GET Requires: 'authorization' header
/api/drivers/:UserName PUT Any of The SignUp Fields Above (Note: You can update Password & It Will Rehash/Cannot Update ID Field) Requires: 'authorization' header
/api/drivers/:UserName DELETE Requires: 'authorization' header

Patient Endpoints

URL METHOD Object Example Authorization?
/api/patients/signup POST FullName (Required),
UserName (Required & Unique),
Password (Required),
PhoneNumber (Integer (10 Char Max) & Required),
DueDate,
Email,
Address,
City_ID (Required/Integer),
HospitalName,
HospitalAddress
No
/api/patients/login POST UserName (Required),
Password (Required)
No
/api/patients GET Requires: 'authorization' header
/api/patients/:UserName GET Requires: 'authorization' header
/api/patients/:UserName PUT Any of The SignUp Fields Above (Note: You can update Password & It Will Rehash/Cannot Update ID Field) Requires: 'authorization' header
/api/patients/:UserName DELETE Requires: 'authorization' header

Ride Endpoints

URL METHOD Object Example Authorization?
/api/rides GET Requires: 'authorization' header
/api/rides/request POST Driver (Required/THEIR USERNAME ),
Patient (Required/THEIR USERNAME),
Address (Required)
Requires: 'authorization' header

Cities Endpoints

URL METHOD Object Example Authorization?
/api/cities GET Requires: 'authorization' header
/api/cities POST City (Required) Requires: 'authorization' header

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published