Commit 25c865d7 authored by Deep Bhuller's avatar Deep Bhuller

Merge branch 'inventory-update-producer' into 'dev'

🚨 fixing package import in Order class [@dbhuller]

See merge request !11
parents 2339acad 4bf9070a
Pipeline #1670 failed with stage
in 38 seconds
......@@ -2,10 +2,7 @@ package com.afp.ordermanagement.controller;
import com.afp.ordermanagement.service.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping(value = "/kafka")
......@@ -18,7 +15,7 @@ public class KafkaController {
}
@PostMapping(value = "/publish/{id}")
public void sendMessageToKafkaTopic(@RequestParam String message) {
producer.sendMessage(message);
public void sendMessageToKafkaTopic(@RequestParam String id) {
producer.sendOrderId(id);
}
}
package com.afp.ordermanagement.UNIT_TESTS.model;
package com.afp.ordermanagement.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
......
package com.afp.ordermanagement.service;
import io.swagger.models.auth.In;
import org.apache.velocity.exception.ResourceNotFoundException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......
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