BAEL-947 removing session header on books client call as it is not needed

This commit is contained in:
tschiman 2017-06-23 16:10:27 -06:00
parent fdb25a2276
commit 3f3b5994f5
2 changed files with 2 additions and 2 deletions

View File

@ -6,5 +6,5 @@ import org.springframework.web.bind.annotation.*;
@FeignClient(value = "book-service")
public interface BooksClient {
@RequestMapping(method = RequestMethod.GET, value="/books/{bookId}")
Book getBookById(@PathVariable("bookId") Long bookId, @RequestHeader("Cookie") String session);
Book getBookById(@PathVariable("bookId") Long bookId);
}

View File

@ -24,7 +24,7 @@ public class CombinedController {
@GetMapping
public Book getCombinedResponse(@RequestParam Long bookId, @CookieValue("SESSION") String session){
Book book = booksClient.getBookById(bookId, "SESSION="+session);
Book book = booksClient.getBookById(bookId);
List<Rating> ratings = ratingsClient.getRatingsByBookId(bookId, "SESSION="+session);
book.setRatings(ratings);
return book;