Auto Mart is an online marketplace for automobiles of diverse makes, model or body type. With Auto Mart, users can sell their cars or buy from trusted dealerships or private sellers
Auto Mart is an online marketplace for automobiles of diverse makes, model or body type. With
Auto Mart, users can sell their cars or buy from trusted dealerships or private sellers
https://automart1.herokuapp.com/api/v1
Verb | Endpoint | Action |
---|---|---|
POST | /api/v1/auth/signup | Create a user |
POST | /api/v1/auth/admin/signup | Create a user (Admin) |
POST | /api/v1/auth/signin | Sign a user in |
POST | /api/v1/car | Create a car AD |
GET | /api/v1/car | View all posted ADs whether sold or available |
GET | /api/v1/car/<:id> | View a specific car AD |
GET | /api/v1/car?status=available | View all unsold cars |
GET | /api/v1/car?body_type=bodyType | View all cars of a specific body type. |
GET | /api/v1/car?status=available&state=new | View all unsold cars of a specific state (new) |
GET | /api/v1/car?status=available&state=used | View all unsold cars of a specific state (used) |
GET | /api/v1/car?status=available&manufacturer=XXXValue | View all unsold cars of a specific make (manufacturer) |
GET | /api/v1/car?status=available&min_price=XXXValue&max_price=XXXValue | View all unsold cars within a price range |
PATCH | /api/v1/car/<:id>/price | Update a specific car AD price |
PATCH | /api/v1/car/<:id>/status | Update a specific car AD status (sold) |
DELETE | /api/v1/car/<:id>/ | Delete a specific car AD (only Admin) |
POST | /api/v1/order | Create an order |
POST | /api/v1/order/<:id>/price | Update price of an order |
POST | /api/v1/flag/report | Create a flag/report a posted AD as fraudulent |
cd into develop
.env
file..env-sample
file to configure the APInpm install
to install dependenciesnpm start
https://automart1.herokuapp.com/api/v1/docs
Paul Taiwo