On Jan 24, 2015, at 01:42 PM, Sumana Harihareswara wrote:

>Expose ILanguageManager as a REST resource, so that Postorius can use it
>to learn what languages a system supports

Since languages must be enabled in the config files, they are system
resources, so they should probably live under the <api>/system/languages
resource, which would be read-only.  GETing that would return the collection
of languages as  resource entries.  Individual languages could be GET'd via
their code, e.g. <api>/system/languages/it

Each language resource would return a JSON representation containing the code,
charset, and description.  See ILanguage for that specification.

(Even though ILanguageManager supports .add(), exposing this to the API
doesn't make them persistent so I don't think POST, PATCH, or PUT should be
exposed in the REST API on that resource.)

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/1414298

Title:
  ILanguageManager should be exposed as a REST resource

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/1414298/+subscriptions
_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders

Reply via email to