apertium / apertium-apy

📦 Apertium HTTP Server in Python
https://wiki.apertium.org/wiki/Apertium-apy
GNU General Public License v3.0
32 stars 42 forks source link

Allow retrieval of descriptive and/or legally relevant information about the APY server #89

Open roybaer opened 6 years ago

roybaer commented 6 years ago

What I have in mind is something like this:

$ curl 'http://fancytranslations.example:2737/about?lang=spa|fra'

{"responseStatus": 200, "responseData": {
 "serviceName": "Fancy-Translate",
 "serviceDescription": "One-line description, preferably in Spanish or French",
 "serviceWebsiteURL": "http://www.fancytranslations.example/spa/index.html",
 "legalNoticeURL": "http://www.fancytranslations.example/spa/legal.html",
 "privacyStatementURL": "http://www.fancytranslations.example/spa/privacy.html"
}, "responseDetails": null}

A web front-end could then put this information in its privacy statement.