do not need
This commit is contained in:
parent
5578045af2
commit
b29c74844a
|
@ -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<Book> listAllBooks();
|
||||
|
||||
}
|
Loading…
Reference in New Issue