Open vanlummelhuizen opened 6 days 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 .
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.