You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were curious regarding the reason to have the /web and /search endpoints encode the query as POST data rather than GET URL Parameters? The benefits of GET would be:
Easier querying for casual users. For example, queries could be single URLs that would work in a browser as opposed to requiring curl.
Easier caching via a reverse proxy. We are running tranlsation-server behind nginx and would like to cache repetitive queries, but caching responses based on POST data appears to be non-standard.
Would it be possible to support both POST data and GET URL parameters? Alternatively, is there a built-in caching solution to deal with 2?
The text was updated successfully, but these errors were encountered:
You could try using citoid which does this and then queries translation-server, but running two services might be overkill for your use case :). https://www.mediawiki.org/wiki/Citoid/API
We were curious regarding the reason to have the
/web
and/search
endpoints encode the query as POST data rather than GET URL Parameters? The benefits of GET would be:Would it be possible to support both POST data and GET URL parameters? Alternatively, is there a built-in caching solution to deal with 2?
The text was updated successfully, but these errors were encountered: