Retrieves all vendors
GET /api/vendors
[
{
"_id": "objectId",
"name": "string",
"website": "string",
"logoLink": "string",
"products": [
"objectId"
]
}
]Retrieves a specific vendor by ID
GET /api/vendor/:id
• id (string, required): Vendor ID
{
"_id": "objectId",
"name": "string",
"website": "string",
"logoLink": "string",
"products": [
"objectId"
]
}Retrieves all products
GET /api/products
[
{
"_id": "objectId",
"name": "string",
"mostRecentPrice": 0,
"mostRecentDate": "date",
"mostRecentAvailability": true,
"link": "string",
"imageLink": "string",
"vendor": "objectId",
"history": [
{
"date": "date",
"availability": true,
"price": 0
}
]
}
]Retrieves a specific product by ID
GET /api/product/:id
• id (string, required): Product ID
{
"_id": "objectId",
"name": "string",
"mostRecentPrice": 0,
"mostRecentDate": "date",
"mostRecentAvailability": true,
"link": "string",
"imageLink": "string",
"vendor": "objectId",
"history": [
{
"date": "date",
"availability": true,
"price": 0
}
]
}