MAIN URL : https://rideforlifebackend.herokuapp.com
### EXAMPLE: https://rideforlifebackend.herokuapp.com/api/patient/signup
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 |
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 |
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 |
URL | METHOD | Object Example | Authorization? |
---|---|---|---|
/api/cities | GET | Requires: 'authorization' header | |
/api/cities | POST | City (Required) | Requires: 'authorization' header |