Package com.viglet.turing.api.ml.data
Class TurMLDataAPI
Object
TurMLDataAPI
-
Constructor Summary
ConstructorDescriptionTurMLDataAPI
(TurDataRepository turDataRepository, TurNLPProcess turNLPProcess, TurDataGroupSentenceRepository turDataGroupSentenceRepository, TurOpenNLPConnector turOpenNLPConnector) -
Method Summary
Modifier and TypeMethodDescriptionturDataAdd
(TurData turData) boolean
turDataDelete
(int id) turDataGet
(int id) turDataImport
(MultipartFile multipartFile) turDataUpdate
(int id, TurData turData)
-
Constructor Details
-
TurMLDataAPI
@Inject public TurMLDataAPI(TurDataRepository turDataRepository, TurNLPProcess turNLPProcess, TurDataGroupSentenceRepository turDataGroupSentenceRepository, TurOpenNLPConnector turOpenNLPConnector)
-
-
Method Details
-
turDataList
- Throws:
JSONException
-
turDataGet
- Throws:
JSONException
-
turDataUpdate
-
turDataDelete
@Transactional @DeleteMapping("/{id}") public boolean turDataDelete(@PathVariable int id) -
turDataAdd
-
turDataImport
@PostMapping("/import") @Transactional public String turDataImport(@RequestParam("file") MultipartFile multipartFile)
-