-
Notifications
You must be signed in to change notification settings - Fork 46
Description
The new API currently returns type
, status
and platform
in an human readable string format, translated according to the lang
parameter (falling back on Accept-Language
header). So for instance we get:
{
...
"status": "Fully Reviewed",
"type": "Extension",
...
}
(Example: https://addons-dev.allizom.org/api/v3/addons/addon/adblock-plus/)
I'd like to change this to string constants. In this case, we'd get "status": "public"
and "type": "extension"
. This would let the client be in charge of translating the constants to a human-readable string in the right language, and more importantly constants would allow the client to do proper conditions based on the add-on type
, status
and file platform
. The problem is, the front-end would then need to have a copy of the constants and their meaning, and keep in sync with addons-server
. Any thoughts on how we should proceed, @mstriemer @muffinresearch @EnTeQuAk ?