packagecom.eksad.masterdata.controller;importcom.eksad.masterdata.domain.MstWo;importcom.eksad.masterdata.service.ProcessHelperService;importcom.eksad.masterdata.service.WOService;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.http.ResponseEntity;importorg.springframework.web.bind.annotation.*;@RestController@RequestMapping("/api/masterdata")publicclassSampleMasterdataWoController{@AutowiredProcessHelperServiceprocessHelperService;@AutowiredWOServicewoService;@GetMapping("/test")publicResponseEntity<String>test(){System.out.println("test admin");returnResponseEntity.ok("this is admin");}@GetMapping("/create")publicResponseEntity<MstWo>create(){MstWoresponse=woService.createNewWo();returnResponseEntity.ok(response);}@GetMapping("/createLock")publicResponseEntity<MstWo>createLock(){MstWoresponse=woService.createNewWoLock();returnResponseEntity.ok(response);}}