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; } }
top of page

Oakland Dont Play featured in NBA AllStar Commercial 2025

Oakland Don't Play was alongside Bay Area greats like E-40, Too $hort, and Richie Rich welcoming visitors to the Bay. NBA All-Star Game 2025 Bay Area commercial "Welcome to the Bay" promoted the Bay Area hosting the 2025 NBA All-Star Game. The commercial highlights the excitement of the Bay Area hosting the event and Oakland Coliseum & Chase Center as the host venue


NBA All-Star Commercial 2025

 
 
 

Comments


bottom of page