SnykLearnCatalog
Model for Snyk Learn Catalog.
Overview
This model represents catalog resources (lessons and learning paths) from Snyk Learn. Uses the Snyk v2 REST API endpoint: /learn/catalog
import clearskies
from clearskies_snyk.models import SnykLearnCatalog
def my_handler(snyk_learn_catalog: SnykLearnCatalog):
# List all catalog resources
resources = snyk_learn_catalog
for resource in resources:
print(f"Resource: {resource.name} ({resource.resource_type})")