A REST API that enables registered users to view and create reports for cars at their convenience.
- User creation
- Authentication - Secured passwords (Rainbow attack proof)
- User deletion
- API routes
- Report creation
- Report approval by administrative user
POST https://carsify-api.vercel.app/auth/signup
Parameter | Type | Description | Required |
---|---|---|---|
email |
string |
Email address of user | Yes |
password |
string |
Password of user | Yes |
POST https://carsify-api.vercel.app/auth/signin
Parameter | Type | Description | Required |
---|---|---|---|
email |
string |
Email address of user | Yes |
password |
string |
Password of user | Yes |
GET https://carsify-api.vercel.app/auth/current-user
Authorization: bearer ${token}
POST https://carsify-api.vercel.app/auth/signout
GET https://carsify-api.vercel.app/auth/?$email=${email}
GET https://carsify-api.vercel.app/auth/:id
GET https://carsify-api.vercel.app/auth/:id
PATCH https://carsify-api.vercel.app/auth/:id
POST https://carsify-api.vercel.app/auth/:id
Parameter | Type | Description | Required |
---|---|---|---|
email |
string |
Email address of user | Yes |
oldPassword |
string |
Current password of user | Yes |
password |
string |
New password of user | Yes |
POST https://carsify-api.vercel.app/reports
content-type: application/json
Authorization: bearer ${token}
Parameter | Type | Description | Required |
---|---|---|---|
make |
string |
Make of car | Yes |
model |
string |
Model of car | Yes |
year |
string |
Year of car | Yes |
mileage |
string |
Mileage of car | Yes |
lng |
string |
Longitude | Yes |
lat |
string |
Latitude | Yes |
price |
string |
Price of car | Yes |
POST https://carsify-api.vercel.app/reports/:id
content-type: application/json
Authorization: bearer ${token}
Parameter | Type | Description | Required |
---|---|---|---|
approved |
string |
approval status | Yes |
GET https://carsify-api.vercel.app/auth/?make=${make}&model=${model}&lng=${lng}&lat=${lat}&mileage=${mileage}&year=${year}
If you have any feedback, please reach out to me at chisomije92@gmail.com