Class ReportTypeController

java.lang.Object
org.cardanofoundation.lob.app.organisation.resource.ReportTypeController

@RestController @RequestMapping("/api/v1/organisations/report-types") @CrossOrigin(origins="http://localhost:3000") @ConditionalOnProperty(value="lob.organisation.enabled", havingValue="true", matchIfMissing=true) public class ReportTypeController extends Object
  • Constructor Details

    • ReportTypeController

      public ReportTypeController()
  • Method Details

    • getReferenceCodes

      @GetMapping(value="/{orgId}", produces="application/json") public org.springframework.http.ResponseEntity<List<ReportTypeView>> getReferenceCodes(@PathVariable("orgId") String orgId)
    • addMappingToReportTypeField

      @PostMapping(value="/{orgId}/field-mappings", produces="application/json") @PreAuthorize("hasRole(@securityConfig.getManagerRole()) or hasRole(@securityConfig.getAccountantRole()) or hasRole(@securityConfig.getAdminRole())") public org.springframework.http.ResponseEntity<?> addMappingToReportTypeField(@PathVariable("orgId") String orgId, @Valid @RequestBody @Valid ReportTypeFieldUpdate reportTypeFieldUpdate)
    • addMappingToReportTypeField

      @PostMapping(value="/{orgId}/field-mappings", produces="application/json", consumes="multipart/form-data") @PreAuthorize("hasRole(@securityConfig.getManagerRole()) or hasRole(@securityConfig.getAccountantRole()) or hasRole(@securityConfig.getAdminRole())") public org.springframework.http.ResponseEntity<?> addMappingToReportTypeField(@PathVariable("orgId") String orgId, @RequestParam("file") org.springframework.web.multipart.MultipartFile file)