Signbank / Global-signbank

An online sign dictionary and sign database management system for research purposes. Developed originally by Steve Cassidy/ This repo is a fork for the Dutch version, previously called 'NGT-Signbank'.
http://signbank.cls.ru.nl
BSD 3-Clause "New" or "Revised" License
19 stars 13 forks source link

The dictionary/get_fields_data/<datasetid>/ API endpoint always returns NGT data #1280

Open vanlummelhuizen opened 6 days ago

susanodd commented 2 days ago

This probably happens if the user is not logged in? The code (as written before adding the API token to it) had a fall-back to NGT when the user was not logged in, since it is public.

vanlummelhuizen commented 1 day ago

This probably happens if the user is not logged in?

No, when API authentication is correct (the user is logged in), the result was still only for NGT. For instance, curl --header 'Authorization:Bearer tSQICBglJoAYuGtz' https://signbank.cls.ru.nl/dictionary/get_fields_data/2/ (Kata Kolok) should give

{
    "fields": [
        "Lemma ID Gloss: Balinees",
        "Lemma ID Gloss: Indonesisch",
        "Lemma ID Gloss: Engels",
        "Annotation ID Gloss: Balinees",
        "Annotation ID Gloss: Indonesisch",
        "Annotation ID Gloss: Engels",
        "Senses: Balinees",
        "Senses: Indonesisch",
        "Senses: Engels",
        ...
    ]
}

but gives

{
  "fields": [
    "Lemma ID Gloss: Dutch",
    "Lemma ID Gloss: English",
    "Annotation ID Gloss: Dutch",
    "Annotation ID Gloss: English",
    "Senses: Dutch",
    "Senses: English",
    ...
  ]
}

This is now fixed in PR #1279 .