Class AccountEventController
java.lang.Object
org.cardanofoundation.lob.app.organisation.resource.AccountEventController
@RestController
@RequestMapping("/api/v1/organisations")
@CrossOrigin(origins="http://localhost:3000")
@ConditionalOnProperty(value="lob.organisation.enabled",
havingValue="true",
matchIfMissing=true)
public class AccountEventController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<AccountEventView>> getReferenceCodes(String orgId) org.springframework.http.ResponseEntity<?> insertReferenceCode(String orgId, @Valid EventCodeUpdate eventCodeUpdate) org.springframework.http.ResponseEntity<?> insertReferenceCodeByCsv(String orgId, org.springframework.web.multipart.MultipartFile file) org.springframework.http.ResponseEntity<?> updateReferenceCode(String orgId, @Valid EventCodeUpdate eventCodeUpdate)
-
Constructor Details
-
AccountEventController
public AccountEventController()
-
-
Method Details
-
getReferenceCodes
@GetMapping(value="/{orgId}/event-codes", produces="application/json") public org.springframework.http.ResponseEntity<List<AccountEventView>> getReferenceCodes(@PathVariable("orgId") String orgId) -
insertReferenceCode
@PostMapping(value="/{orgId}/event-codes", consumes="application/json", produces="application/json") @PreAuthorize("hasRole(@securityConfig.getManagerRole()) or hasRole(@securityConfig.getAccountantRole()) or hasRole(@securityConfig.getAdminRole())") public org.springframework.http.ResponseEntity<?> insertReferenceCode(@PathVariable("orgId") String orgId, @Valid @RequestBody @Valid EventCodeUpdate eventCodeUpdate) -
insertReferenceCodeByCsv
@PostMapping(value="/{orgId}/event-codes", consumes="multipart/form-data") @PreAuthorize("hasRole(@securityConfig.getManagerRole()) or hasRole(@securityConfig.getAccountantRole()) or hasRole(@securityConfig.getAdminRole())") public org.springframework.http.ResponseEntity<?> insertReferenceCodeByCsv(@PathVariable("orgId") String orgId, @RequestParam("file") org.springframework.web.multipart.MultipartFile file) -
updateReferenceCode
@PutMapping(value="/{orgId}/event-codes", produces="application/json") @PreAuthorize("hasRole(@securityConfig.getManagerRole()) or hasRole(@securityConfig.getAccountantRole()) or hasRole(@securityConfig.getAdminRole())") public org.springframework.http.ResponseEntity<?> updateReferenceCode(@PathVariable("orgId") String orgId, @Valid @RequestBody @Valid EventCodeUpdate eventCodeUpdate)
-