tematres / TemaTres-Vocabulary-Server

Web application for management formal representations of knowledge, like controlled vocabularies, taxonomies, thesauri and glossaries
https://vocabularyserver.com
120 stars 52 forks source link

The Termatres API redirects to the login page #21

Closed irpye closed 2 years ago

irpye commented 6 years ago

We want to query the Termatres API from the web interface of another application.

It works correctly if we are logged on Termatres on the same browser.

But, if we are not logged in, the request on the API fails because it returns to the login page.

Where could this problem come from ?

Thank you.

tematres commented 6 years ago

Hi, may be you call the api using rewrite rules (ex: http://www.r020.com.ar/tematres/demo/api/search/french/json or http://www.r020.com.ar/tematres/demo/api/search/french) and you do not enalbe the mod_rewrite in apache. Try: http://www.r020.com.ar/tematres/demo/services.php?task=search&arg=french or http://www.r020.com.ar/tematres/demo/services.php?task=search&arg=french&output=json

Or the web services are disable in the tematres instance . Check the status calling the feed without params: http://www.r020.com.ar/tematres/demo/services.php

OK? please let me know about any problem or doubt (and sorry about my english :/)

irpye commented 6 years ago

Hello and thanks for the answer. The API may be disabled. When i call the feed without params, i am also redirected to the login page. How do i enable the API ? (And sorry for my english too).

tematres commented 6 years ago

Access to the form configuration: Login as admin: Menu -> Configuration : Click in the title of your vocabulary in the Configuration div. In the form configuration you can enable the web services. Wich language you prefer? (spanish?? :))

Can you share the URL of your vocabulary to check the problem?

best regards