From 236baaefad1756a2d3f736b43decd3d456639596 Mon Sep 17 00:00:00 2001 From: Mathieu Pillard Date: Fri, 29 Jun 2018 17:10:28 +0200 Subject: [PATCH] Fix typo in API docs: files[].size instead of files[].id --- docs/topics/api/addons.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/topics/api/addons.rst b/docs/topics/api/addons.rst index adf82c3445..160243e3d3 100644 --- a/docs/topics/api/addons.rst +++ b/docs/topics/api/addons.rst @@ -374,14 +374,14 @@ This endpoint allows you to fetch a single version belonging to a specific add-o :>json int files[].id: The id for a file. :>json string files[].created: The creation date for a file. :>json string files[].hash: The hash for a file. - :>json string files[].platform: The :ref:`platform ` for a file. - :>json int files[].id: The size for a file, in bytes. :>json boolean files[].is_mozilla_signed_extension: Whether the file was signed with a Mozilla internal certificate or not. :>json boolean files[].is_restart_required: Whether the file requires a browser restart to work once installed or not. :>json boolean files[].is_webextension: Whether the file is a WebExtension or not. + :>json array files[].permissions[]: Array of the webextension permissions for this File, as strings. Empty for non-webextensions. + :>json string files[].platform: The :ref:`platform ` for a file. + :>json int files[].size: The size for a file, in bytes. :>json int files[].status: The :ref:`status ` for a file. :>json string files[].url: The (absolute) URL to download a file. Clients using this API can append an optional ``src`` query parameter to the url which would indicate the source of the request (See :ref:`download sources `). - :>json array files[].permissions[]: Array of the webextension permissions for this File, as strings. Empty for non-webextensions. :>json object license: Object holding information about the license for the version. For performance reasons this field is omitted from add-on search endpoint. :>json string|object|null license.name: The name of the license (See :ref:`translated fields `). :>json string|object|null license.text: The text of the license (See :ref:`translated fields `). For performance reasons this field is omitted from add-on detail endpoint.