Package org.project.service
Class TranslationService
java.lang.Object
org.project.service.TranslationService
Service layer entry point for translation requests exposed to controllers.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TranslationService
public TranslationService()
-
-
Method Details
-
translate
Validate, clean, and translate the input request.- Parameters:
request- map with 'type' and 'input'- Returns:
- HTTP response with translation or error
-