@@ -0,0 +1,921 @@
+package com.ims.controllers.rest;%0A%0Aimport org.springframework.http.HttpStatus;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport com.example.controllers.rest.FlashCard;%0A%0A@RestController%0A@RequestMapping(value=%22/product%22)%0Apublic class ProductAPI %7B%0A%09%0A%09@RequestMapping(method=RequestMethod.GET, value=%22/get-product%22)%0A%09public FlashCard getFlashCard() %7B%0A%09%09FlashCard flashcard = new FlashCard(%22What's the meaning of life%22, %2242%22);%0A%09%09return flashcard;%0A%09%7D%0A%09%0A%09@RequestMapping(method=RequestMethod.GET, value=%22/get-all-products%22)%0A%09public ResponseEntity%3CFlashCard%3E getFlashCard2() %7B%0A%09%09FlashCard flashcard = new FlashCard(%22What's the meaning of life%22, %2242%22);%0A%09%09return ResponseEntity.status(HttpStatus.I_AM_A_TEAPOT).body(flashcard);%0A%09%7D%0A%09%09%0A%7D%0A

create controller package