Skip to content
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

Open
pheyvaer opened this issue Jun 28, 2016 · 6 comments
Open

e-Terminology: request possible source-lang and target-lang pairs #18

pheyvaer opened this issue Jun 28, 2016 · 6 comments

Comments

@pheyvaer
Copy link
Contributor

This allows to automatically provide users with the correct options, instead of hard-coding it.

@andish
Copy link
Contributor

andish commented Sep 22, 2016

Tilde endpoint now returns list of available languages and domains in json format.

Languages

Curl:

curl -X GET -H "Authorization: Basic RlJFTUU6dXxGcjNtM19zJGN1ciQ="  "https://services.tilde.com/languages/terminology"

Optional query parameter (in order to retrieve languages from private collections):

  • key

Example of response:

{
  "languages": [
    {
      "id": "bg",
      "name": "Bulgarian"
    },
    {
      "id": "hr",
      "name": "Croatian"
    },
    {
      "id": "cs",
      "name": "Czech"
    },
    {
      "id": "da",
      "name": "Danish"
    } ]
}

Domains

Curl:

curl -X GET -H "Authorization: Basic RlJFTUU6dXxGcjNtM19zJGN1ciQ="  "https://services.tilde.com/domains/terminology"

Optional query parameter (in order to retrieve also domains for private collections):

  • key

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

@jnehring jnehring assigned bgrusdt and unassigned andish Sep 22, 2016
@jnehring
Copy link
Member

We can include this in the FREME endpoints. @pheyvaer is this still a requirement?

@pheyvaer
Copy link
Contributor Author

This would make the CKEditor plugin more dynamic, instead of hardcoding all the language pairs.

@jnehring
Copy link
Member

Ok. @bgrusdt please add a new API endpoint for this.

@pheyvaer
Copy link
Contributor Author

Aah sorry I thought this was about e-Translation. We don't use e-Terminology, so you can skip it for this service.

@jnehring
Copy link
Member

Ok lets not implement this now but I will leave the issue open to document the new Tilde endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants