Package org.openwms.transactions
Class TransactionController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.transactions.TransactionController
@Validated
@MeasuredRestController
public class TransactionController
extends org.openwms.core.http.AbstractWebController
A TransactionController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TransactionMapperprivate final TransactionService -
Constructor Summary
ConstructorsConstructorDescriptionTransactionController(TransactionMapper mapper, TransactionService transactionService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<TransactionVO> create(@Valid TransactionVO transaction, jakarta.servlet.http.HttpServletRequest req) org.springframework.http.ResponseEntity<List<TransactionVO>> findAll()org.springframework.http.ResponseEntity<TransactionVO> findByPKey(String pKey) org.springframework.http.ResponseEntity<List<TransactionVO>> findByType(String type) org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate
-
Field Details
-
mapper
-
transactionService
-
-
Constructor Details
-
TransactionController
-
-
Method Details
-
findAll
@GetMapping(value="/transactions", produces="application/vnd.openwms.common.transaction-v1+json") public org.springframework.http.ResponseEntity<List<TransactionVO>> findAll() -
findByPKey
@GetMapping(value="/transactions/{pKey}", produces="application/vnd.openwms.common.transaction-v1+json") public org.springframework.http.ResponseEntity<TransactionVO> findByPKey(@PathVariable("pKey") String pKey) -
findByType
@GetMapping(value="/transactions", produces="application/vnd.openwms.common.transaction-v1+json", params="type") public org.springframework.http.ResponseEntity<List<TransactionVO>> findByType(@RequestParam("type") String type) -
create
@Validated(Create.class) @PostMapping(value="/transactions", consumes="application/vnd.openwms.common.transaction-v1+json", produces="application/vnd.openwms.common.transaction-v1+json") public org.springframework.http.ResponseEntity<TransactionVO> create(@Valid @RequestBody @Valid TransactionVO transaction, jakarta.servlet.http.HttpServletRequest req) -
index
@GetMapping("/transactions/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()
-