freme-project / e-services

Apache License 2.0
1 stars 1 forks source link

e-Terminology: request possible collections and domain-ids #19

Open pheyvaer opened 8 years ago

pheyvaer commented 8 years ago

So developers don't need to hard-code this.

andish commented 7 years ago

Tilde endpoint now returns list of available collections in json format. Curl:

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

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

Optional query parameters for filtering (to return filtered list of collections):

Example of response:

{
  "collections": [
    {
      "id": 6681,
      "name": "EASTIN-CL Multilingual Ontology of Assistive Technology",
      "languages": [
        "da",
        "de",
        "en",
        "et",
        "it",
        "lt",
        "lv"
      ],
      "domains": [
        "TaaS-0200"
      ]
    },
 {
      "id": 6826,
      "name": "Foras na Gaeilge, Focal.ie",
      "languages": [
        "de",
        "el",
        "en",
        "es",
        "et",
        "eu",
        "fr",
        "hu",
        "la",
        "lt",
        "lv",
        "mt",
        "pl",
        "sk",
        "sl",
        "ga",
        "it",
        "ru",
        "cs",
        "ja",
        "nl",
        "da",
        "bg",
        "fi",
        "no",
        "pt",
        "ro",
        "sv"
      ],
      "domains": [
        "TaaS-0100",
        "TaaS-0300",
        "TaaS-1000",
        "TaaS-2000",
        "TaaS-2100",
        "TaaS-1500"
      ]
    }]
}

TO DO: include it in FREME server.

jnehring commented 7 years ago

We can include this. @pheyvaer is this still a requirement?`

Do we actually need to provide this as a FREME endpoint? Users could call the service directly. This also applies to #18

pheyvaer commented 7 years ago

No, not at the moment.