GALAglobal / translationapi

The API is for anyone who wants to adopt best practices for a translation services API to interact with counterparts directly from your application or content management system. The API helps ensure interoperability for the most common tasks.
https://translate.taus.net/translate/taus-translation-api
MIT License
12 stars 3 forks source link

Method for client to determine which payload formats are supported #10

Open achimr opened 9 years ago

achimr commented 9 years ago

-- It seems there is no way for the caller to know what kind of payload the provider can process. While it can likely be handled through error reporting, it'd be better to be able to query the capabilities of the provide before sending data. (reported by Yves Savourel)

HTTP already has content negotiation but it does not apply, it defines the flexible delivery of different content formats from server to client: http://www.w3.org/Protocols/rfc2616/rfc2616-sec12.html; we need another function that queries the provider for acceptable translation request formats