ynput / ayon-backend

Server codebase with API access to AYON
Apache License 2.0
18 stars 14 forks source link

Addons library: More api options to receive addons #225

Closed iLLiCiTiT closed 1 month ago

iLLiCiTiT commented 1 month ago

Description of changes

AddonLibrary has api functions to get addons by variant, not just "production" and "staging" but dev bundles too.

Technical details

Modified get_active_versions to also collect addon versions for dev bundles. Implemented helper methods get_addon_versions_by_variant, get_addons_by_variant and get_addon_by_variant as api functions. Function get_addon_by_variant is also used by get_production_addon and get_staging_addon.