Commit 50f10b71 authored by Amar Bogari's avatar Amar Bogari

added RequestMapping.

parent 9542f52b
......@@ -19,7 +19,7 @@ configurations {
repositories {
flatDir {
dirs '/Users/sivanagasomeswaragandhijatla/.m2/repository/com/nisum/exceptionservice/0.0.1'
dirs 'C:\\Users\\abogari\\.m2\\repository\\com\\nisum\\exceptionservice\\0.0.1'
// dirs '/Users/sivanagagasomeswaragandhijatla/.m2/repository/com/nisum/exceptionservice/0.0.1'
}
mavenCentral()
......
......@@ -16,6 +16,7 @@ import java.io.IOException;
@RestController
@CrossOrigin("*")
@RequestMapping("/offer-service")
public class OfferTransactionController {
private static final String SWY_RES_UNIQUE_UUID = "swy-res-unique-uuid";
......@@ -30,15 +31,14 @@ public class OfferTransactionController {
@Autowired
private EndOfTransactionService endOfTransactionService;
@PostMapping("offerTransactionCall")
@PostMapping("/offerTransactionCall")
public OfferTransactionResponse getOfferTransactionResponse(@Valid @RequestBody OfferTransactionRequest offerTransactionRequest) {
MDC.put(SWY_RES_UNIQUE_UUID, String.valueOf(offerTransactionRequest.getHhId()));
MDC.put(USER_ID, String.valueOf(offerTransactionRequest.getHhId()));
return offerCallingPEService.getDiscountedItemList(offerTransactionRequest);
}
@PostMapping("endOfSale")
@PostMapping("/endOfSale")
public EndOfSaleResponse endOfSale(@Valid @RequestBody EndOfSaleReq endOfSaleReq) throws IOException {
MDC.put(SWY_RES_UNIQUE_UUID, endOfSaleReq.getOfferTransactionResponse().getHhid());
MDC.put(USER_ID, endOfSaleReq.getOfferTransactionResponse().getHhid());
......
......@@ -54,7 +54,6 @@ public class OfferCallingPEService {
OfferTransactionResponse offerTransactionResponse;
PERequest peRequest = INSTANCE.map(offerTransactionRequest);
peRequest.setEligibleOffers(offerLookupDTOList);
peRequest.setHhId(null);
log.info("Promotional Engine Feign client call Start");
ResponseEntity<PEResponse> peResponse = null;
try{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment