|
@ -101,7 +101,8 @@ public class BookBasePathAwareController { |
|
|
|
|
|
|
|
|
////////////////////////////// |
|
|
////////////////////////////// |
|
|
@RequestMapping( |
|
|
@RequestMapping( |
|
|
value = "${page.url.restapi.list}", |
|
|
|
|
|
|
|
|
// TODO property definition ${page.url.restapi.books} does not work here |
|
|
|
|
|
value = "/booklist", |
|
|
method = RequestMethod.POST, |
|
|
method = RequestMethod.POST, |
|
|
consumes = "application/json", |
|
|
consumes = "application/json", |
|
|
produces = "application/hal+json" |
|
|
produces = "application/hal+json" |
|
@ -149,7 +150,8 @@ public class BookBasePathAwareController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@RequestMapping( |
|
|
@RequestMapping( |
|
|
value = "${page.url.restapi.list}" + "/{id}", |
|
|
|
|
|
|
|
|
// TODO property definition ${page.url.restapi.books} does not work here |
|
|
|
|
|
value = "/booklist" + "/{id}", |
|
|
method = RequestMethod.PUT, |
|
|
method = RequestMethod.PUT, |
|
|
consumes = "application/json", |
|
|
consumes = "application/json", |
|
|
produces = "application/hal+json" |
|
|
produces = "application/hal+json" |
|
|