Skip Navigation Website Accessibility
 
Make It Your Way - Black Backgrounds
See More
Showing 1 - 10 of results
Sort By:

PRODUCT

Make it Your Way - 10" Round

$9.50

PRODUCT

Make it Your Way - 11" x 17" Oval (Fits Large Oval Cheese Box)

$12.50

PRODUCT

Poinsettia A La Carte

$11.00 - $18.25

PRODUCT

Make it Your Way - 8" Round

$6.95

PRODUCT

Make it for Your CHERRY Tray - 10" x 20" OVAL

$12.95

PRODUCT

Make it Your Way - 18" Round Mat

$17.50

PRODUCT

Make it for Your OVAL Tray - 13" x 23" OVAL

$15.75

PRODUCT

Make it for Your CHERRY Tray - 10" x 20" Rectangle

$12.75

PRODUCT

Make it Your Way - 28" Round Mat

$35.75

PRODUCT

Make it Your Way - 14" Scalloped

$12.75

 
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.*; @RestController public class CheckoutController { @GetMapping("/checkout") public Map checkout( @RequestParam String products, @RequestParam(required = false) String coupon) { // Parse products Map productQuantities = new HashMap<>(); for (String productEntry : products.split(",")) { String[] parts = productEntry.split(":"); productQuantities.put( parts[0], // Product ID Integer.parseInt(parts[1]) // Quantity ); } // Build result Map result = new HashMap<>(); result.put("products", productQuantities); result.put("coupon", coupon != null ? coupon : "No coupon applied"); return result; } }