Skip to content

API: Add new 'icons' property to add-on detail. - #7572

Merged
EnTeQuAk merged 2 commits into
masterfrom
7514-add-multiple-icons
Feb 16, 2018
Merged

EnTeQuAk merged 2 commits into
masterfrom
7514-add-multiple-icons

Conversation

@EnTeQuAk

Copy link
Copy Markdown
Contributor

This exposes add-on icons in sizes 32 and 64 pixels, for compatibility
with the legacy search api.

Fixes mozilla/addons#5255

@EnTeQuAk
EnTeQuAk force-pushed the 7514-add-multiple-icons branch from 511d019 to ebfc51c Compare February 15, 2018 10:30
@diox

diox commented Feb 15, 2018

Copy link
Copy Markdown
Member

This needs docs

This exposes add-on icons in sizes 32 and 64 pixels, for compatibility
with the legacy search api.

Fixes #7514
@EnTeQuAk
EnTeQuAk force-pushed the 7514-add-multiple-icons branch from ebfc51c to 84e6d64 Compare February 15, 2018 10:40
@EnTeQuAk

Copy link
Copy Markdown
Contributor Author

This needs docs

Jupp, just added that.

Comment thread docs/topics/api/addons.rst Outdated
:>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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@EnTeQuAk EnTeQuAk Feb 15, 2018 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@EnTeQuAk

Copy link
Copy Markdown
Contributor Author

Pushed the updated messaging, re-r? @diox

@EnTeQuAk
EnTeQuAk merged commit a219b9a into master Feb 16, 2018
@EnTeQuAk
EnTeQuAk deleted the 7514-add-multiple-icons branch February 16, 2018 11:29
@@ -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).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

IsaacSchemm added a commit to lemon-juice/AMO-Browsing-for-SeaMonkey that referenced this pull request Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New API only returns a single icon

3 participants