Package org.project.controller
Class TranslateController
java.lang.Object
org.project.controller.TranslateController
REST controller for handling translation requests.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TranslateController
public TranslateController()
-
-
Method Details
-
translate
@POST @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response translate(Map<String, String> request) Handle translation requests (expects JSON with 'type' and 'input').- Parameters:
request- translation request data- Returns:
- HTTP response with translation result
-