Package co.mastermindcms.modules.rest
Class EcommerceLogisticsController
- java.lang.Object
-
- co.mastermindcms.modules.rest.EcommerceLogisticsController
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@RestController public class EcommerceLogisticsController extends java.lang.Object implements org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description private CdekHandlerService
cdekHandlerService
private com.fasterxml.jackson.databind.ObjectMapper
mapper
-
Constructor Summary
Constructors Constructor Description EcommerceLogisticsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
org.springframework.http.ResponseEntity<?>
handleCdekGet(java.util.Map<java.lang.String,java.lang.Object> request)
org.springframework.http.ResponseEntity<?>
handleCdekPost(java.util.Map<java.lang.String,java.lang.Object> request)
-
-
-
Field Detail
-
cdekHandlerService
@Autowired private CdekHandlerService cdekHandlerService
-
mapper
private final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Method Detail
-
handleCdekGet
@CrossOrigin(origins="*", allowCredentials="false") @GetMapping(value="/api/v1/cdek", produces="application/json") public org.springframework.http.ResponseEntity<?> handleCdekGet(@RequestParam java.util.Map<java.lang.String,java.lang.Object> request)
-
handleCdekPost
@PostMapping(value="/api/v1/cdek", consumes="application/json") public org.springframework.http.ResponseEntity<?> handleCdekPost(@RequestBody java.util.Map<java.lang.String,java.lang.Object> request)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
-