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(); - -}