Repository navigation
API: Add new 'icons' property to add-on detail. - #7572
Conversation
511d019 to
ebfc51c
Compare
|
This needs docs |
This exposes add-on icons in sizes 32 and 64 pixels, for compatibility with the legacy search api. Fixes #7514
ebfc51c to
84e6d64
Compare
Jupp, just added that. |
| :>json boolean has_privacy_policy: The add-on has a Privacy Policy (See :ref:`add-on EULA and privacy policy <addon-eula-policy>`). | ||
| :>json string|object|null homepage: The add-on homepage (See :ref:`translated fields <api-overview-translations>`). | ||
| :>json string icon_url: The URL to icon for the add-on (including a cachebusting query string). | ||
| :>json object icons: An object holding the URLs to an add-ons icon including a cachebusting query string. Currently exposes 32 and 64 pixels wide icons. |
There was a problem hiding this comment.
add-ons icon should be add-on icons instead, I think. Also, not sure how to word this better but in it's current form it does not describe how the object is set up (i.e. it does not say the the sizes are the properties of the object, and the urls the values)
There was a problem hiding this comment.
add-ons icon should be add-on icons instead, I think
Hmm, I wanted to name this so that it implies that the icon is actually the same and only the sizes change
Does An object holding the URLs to the icons of an add-on including a cache-busting query string as values and their size as properties. Currently exposes 32 and 64 pixels wide icons. sound better?
|
Pushed the updated messaging, re-r? @diox |
| @@ -166,6 +166,7 @@ This endpoint allows you to fetch a specific add-on by id, slug or guid. | |||
| :>json boolean has_privacy_policy: The add-on has a Privacy Policy (See :ref:`add-on EULA and privacy policy <addon-eula-policy>`). | |||
| :>json string|object|null homepage: The add-on homepage (See :ref:`translated fields <api-overview-translations>`). | |||
| :>json string icon_url: The URL to icon for the add-on (including a cachebusting query string). | |||
There was a problem hiding this comment.
If we're keeping the old icon_url around can we slightly alter the description to mention it's the default 64x64 size icon it returns.
This exposes add-on icons in sizes 32 and 64 pixels, for compatibility
with the legacy search api.
Fixes mozilla/addons#5255