@FrameworkRestController @FrameworkMapping(value="/customer") public class OrderCustomerEndpoint extends BaseEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected OrderCustomerService |
orderCustomerService |
context, messageSource| Constructor and Description |
|---|
OrderCustomerEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
createCustomer(javax.servlet.http.HttpServletRequest request,
OrderCustomerDTO dto) |
org.springframework.http.ResponseEntity |
getCustomerById(javax.servlet.http.HttpServletRequest request,
Long customerId) |
getApplicationContext, getMessageSource, setApplicationContext, setMessageSourceprotected OrderCustomerService orderCustomerService
@FrameworkMapping(path="/{id}", method=GET) public org.springframework.http.ResponseEntity getCustomerById(javax.servlet.http.HttpServletRequest request, @PathVariable Long customerId)
@FrameworkMapping(path="", method=POST) public org.springframework.http.ResponseEntity createCustomer(javax.servlet.http.HttpServletRequest request, @RequestBody OrderCustomerDTO dto)
Copyright © 2017. All rights reserved.