BAEL-947 removing session header on books client call as it is not needed
This commit is contained in:
parent
fdb25a2276
commit
3f3b5994f5
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue