Class VendorController
java.lang.Object
com.mt.ecommerce.product.controller.VendorController
Controller for managing vendors.
Provides endpoints for retrieving vendor information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVendorByStoreName
(String storename) Endpoint to retrieve a vendor by store name.Endpoint to retrieve all vendors.
-
Constructor Details
-
VendorController
-
-
Method Details
-
getVendors
Endpoint to retrieve all vendors. Accessible without authentication.- Returns:
- a list of VendorBO objects representing all vendors
-
getVendorByStoreName
@GetMapping(value="/unsecured/{storename}", produces="application/json") public VendorBO getVendorByStoreName(@PathVariable("storename") String storename) Endpoint to retrieve a vendor by store name. Accessible without authentication.- Parameters:
storename
- the store name of the vendor to retrieve- Returns:
- the VendorBO object representing the vendor with the specified store name
-