do not need

This commit is contained in:
rvsathe 2021-05-11 07:43:35 +05:30 committed by GitHub
parent 5578045af2
commit b29c74844a
1 changed files with 0 additions and 24 deletions

View File

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