// Path: feign/src/main/java/com/example/services/NotificationsService.java
// public interface NotificationsService {
// 
//     void sendNotification(String type, String content);
// }


import com.example.services.NotificationsService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
package com.example.rest;



/**
 * Controller that defines /publish http endpoint. When invoking this endpoint, a notification is
 * post to http://localhost:8080/notifications using the Feign client
 *
 * @author jmbataller
 */
@RestController
public class NotificationsClientController {

    private static final Logger LOGGER = LogManager.getLogger(NotificationsClientController.class);

    @Autowired
    private NotificationsService notificationsService;

    @RequestMapping("/publish")
    public void sendNotification() {
// Path: feign/src/main/java/com/example/services/NotificationsService.java
// public interface NotificationsService {
// 
//     void sendNotification(String type, String content);
// }


// Path: feign/src/main/java/com/example/rest/NotificationsClientController.java
import com.example.services.NotificationsService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

package com.example.rest;



/**
 * Controller that defines /publish http endpoint. When invoking this endpoint, a notification is
 * post to http://localhost:8080/notifications using the Feign client
 *
 * @author jmbataller
 */
@RestController
public class NotificationsClientController {

    private static final Logger LOGGER = LogManager.getLogger(NotificationsClientController.class);

    @Autowired
    private NotificationsService notificationsService;

    @RequestMapping("/publish")
    public void sendNotification() {
        notificationsService.sendNotification("test", "test data!!!");