service_invocation/java/http/order-processor/src/main/java/com/service/controller/OrderProcessingServiceController.java
package com.service.controller;

import com.service.model.Order;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderProcessingServiceController {
    @PostMapping(path = "/orders", consumes = MediaType.ALL_VALUE)
    public String processOrders(@RequestBody Order body) {
        System.out.println("Order received: "+ body.getOrderId());
        return "CID" + body.getOrderId();
    }
}
