Class VendorController

java.lang.Object
com.mt.ecommerce.product.controller.VendorController

@RestController @RequestMapping("/vendor") public class VendorController extends Object
Controller for managing vendors. Provides endpoints for retrieving vendor information.
  • Constructor Details

    • VendorController

      public VendorController(VendorService vendorService)
  • Method Details

    • getVendors

      @GetMapping(value="/unsecured/all", produces="application/json") public List<VendorBO> 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