ASL for All uses a custom python API to translate English grammar to ASL grammar and concatenate videos. All required libraries can be found in 'libs.txt'.Note: aslgrammartranslator.jar must be compiled from here.
To run the API, run python3 api.py
.
Open endpoints require no authentication.
- Test API:
GET /api
- Translate English grammar to ASL grammar:
GET /api/translate
- Concatenate videos:
GET /api/concatenate
Used to test if the API is online.
URL: /api
Method: GET
Code: 200
Content:
{
"message": "ASL for All API"
}
Used to translate English grammar to ASL grammar.
URL: /api/translate
Method: GET
{
"sentence": "[English sentence to translate]"
}
Code: 200
Content example:
{
"translation": "I LOVE MY DOG"
}
Code: 400
Content:
{
"error": "Could not translate sentence"
}
Code: 400
Content:
{
"error": "Missing parameters"
}
Used to concatenate videos.
URL: /api/concatenate
Method: GET
{
"videos": "[Array of video URLs]"
}
Code: 200
Content example:
{
"concatenated video": "https://.../video.mp4"
}
Code: 400
Content:
{
"error": "Could not concatenate videos"
}
Code: 400
Content:
{
"error": "Missing parameters"
}