Creación de un repositorio de extensiones dinámico#

A dynamic repository allows you to serve a smaller JSON file with only the latest version of the extensions which are compatible with the query parameters. This is only relevant for repositories which contain multiple version of multiple extensions.

For small or personal repositories it is simpler and recommended to use static repositories instead.

Listing#

To setup a dynamic extensions repository, follow the steps for static repositories, since the format and the listing are the same.

Query Parameters#

When Blender fetches the extensions listing it passes the following arguments to make sure only compatible extensions are listed:

  • platforma

  • versión_de_blender

These arguments are passed as parameters to the server via a query URL:

URL:

https://extensions.blender.org/api/v1/extensions/

query URL:

https://extensions.blender.org/api/v1/extensions/?blender_version=4.2.0&platform=linux-x64

Ficha de acceso#

Algunos repositorios podrán requerir autenticación. El usuario podrá ingresar una ficha de acceso para un repositorio, que será enviada, conjuntamente con la consulta de Blender a la API.

Ésta será enviada a los servidores mediante un encabezado de Autorización:

curl -i https://extensions.blender.org/api/v1/extensions/ \
     -H "Accept: application/json" \
     -H "Authorization: Bearer abc29832befb92983423abcaef93001"