From b29c74844a9e62d17122992cbe31ffdcc41b1e23 Mon Sep 17 00:00:00 2001 From: rvsathe <38076470+rvsathe@users.noreply.github.com> Date: Tue, 11 May 2021 07:43:35 +0530 Subject: [PATCH] do not need --- .../hexagonalPattern/web/LibraryRestUI.java | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 hexagonal-example/src/main/java/com/baeldung/hexagonalPattern/web/LibraryRestUI.java diff --git a/hexagonal-example/src/main/java/com/baeldung/hexagonalPattern/web/LibraryRestUI.java b/hexagonal-example/src/main/java/com/baeldung/hexagonalPattern/web/LibraryRestUI.java deleted file mode 100644 index e212fca33d..0000000000 --- a/hexagonal-example/src/main/java/com/baeldung/hexagonalPattern/web/LibraryRestUI.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.baeldung.hexagonalPattern.web; - -import java.util.List; - -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; - -import com.baeldung.hexagonalPattern.core.domain.Book; - -public interface LibraryRestUI { - // This is the in bound Adapter - - @PostMapping - public int insertBook(@RequestBody Book book); - - @GetMapping - public Book searchBook(@PathVariable String name); - - @GetMapping - public List listAllBooks(); - -}