-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e-Terminology: request possible source-lang and target-lang pairs #18
Comments
Tilde endpoint now returns list of available languages and domains in json format. LanguagesCurl:
Optional query parameter (in order to retrieve languages from private collections):
Example of response: {
"languages": [
{
"id": "bg",
"name": "Bulgarian"
},
{
"id": "hr",
"name": "Croatian"
},
{
"id": "cs",
"name": "Czech"
},
{
"id": "da",
"name": "Danish"
} ]
} DomainsCurl:
Optional query parameter (in order to retrieve also domains for private collections):
Example of response: {
"domains": [
{
"id": "TaaS-0100",
"parent_id": null,
"name": "Politics and Administration"
},
{
"id": "TaaS-0101",
"parent_id": "TaaS-0100",
"name": "Administration"
},
{
"id": "TaaS-0102",
"parent_id": "TaaS-0100",
"name": "Politics"
},
{
"id": "TaaS-0106",
"parent_id": "TaaS-0100",
"name": "International relations and defence"
}]} TO DO: include in FREME server |
We can include this in the FREME endpoints. @pheyvaer is this still a requirement? |
This would make the CKEditor plugin more dynamic, instead of hardcoding all the language pairs. |
Ok. @bgrusdt please add a new API endpoint for this. |
Aah sorry I thought this was about e-Translation. We don't use e-Terminology, so you can skip it for this service. |
Ok lets not implement this now but I will leave the issue open to document the new Tilde endpoint. |
This allows to automatically provide users with the correct options, instead of hard-coding it.
The text was updated successfully, but these errors were encountered: