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

Banana Bread Recipe

don’t worry I won’t bore you with a long story no one will read. Here is the recipe 🤣👇🏻


Ingredients

  • 3 bananas, mashed

  • 1/2 cup avocado oil (or oil of choice)

  • 1 cup granulated sugar

  • 2 eggs

  • 1 tsp cinnamon

  • 1 tsp vanilla

  • 1 3/4 cups flour

  • 1 tsp baking soda

  • 1/2 tsp baking powder

  • 1/2 tsp salt

Instructions

  1. Preheat oven to 325 degrees.

  2. Add the mashed bananas, oil, granulated sugar, eggs, cinnamon, and vanilla to a large bowl. Whisk until everything is well combined.

  3. Add the flour, baking soda, baking powder, and salt. Stir until just combined.

  4. Grease a loaf pan. Pour the batter into the pan. Bake at 325 degrees on a middle rack for 50-60 minutes, or until a knife or toothpick pulls out clean.


Note

If using mini loaf pans cook for 30 minutes or until a knife or toothpick pulls out clean.


Visit my Instagram or YouTube for a video ❤️

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
  • Facebook Social Icon
  • YouTube Social  Icon
  • Instagram

Newsletter Sign Up

Never miss an important update! Dont worry I wont spam! I generally send 1-2 Emails per month.

Name

Email

bottom of page