Simple guide to use the ToDarija translation API.
URL: http://localhost:8080/ToDarija-1.0-SNAPSHOT/api/Translate
Method: POST
{
"type": "text",
"input": "Hello, how are you?"
}Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"input": "Hello, how are you?",
"translation": "كيفاش نتا؟"
}- 401 - Not authenticated (login with Google first)
- 400 - Missing type or input
- 500 - Server error
- Open the web interface
- Click "Login with Google"
- Token is saved automatically
That's it!