{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/2"}],"enrichment":{"capability":"Provides routers and serializer fields for Django REST Framework to build nested REST API resources where child resources are scoped within parent resources.","skillfed_tags":["rest-api","django-extension"],"use_cases":["Build a multi-tenant API where teams have projects and projects have tasks, with hierarchical URL scoping.","Create a domain management API where domains have nested nameservers, SSL certificates, or DNS records scoped to each domain.","Implement a content management system with nested resources like sites containing pages containing comments.","Design a SaaS API with organizations, workspaces, and resources nested within each, maintaining proper authorization boundaries.","Build a file system-like API structure with folders containing subfolders and files, using nested routers to reflect the hierarchy."],"what_it_does":"drf-nested-routers extends Django REST Framework's routing system to handle nested resources\u2014child resources that logically belong within parent resources. Instead of flat URLs like /domains/ and /nameservers/, it generates hierarchical URLs like /domains/{domain_pk}/nameservers/{pk}, where the nameserver is always accessed in the context of its parent domain. This is essential for building truly RESTful APIs where resource relationships are reflected in the URL structure.\n\nThe package provides NestedSimpleRouter and NestedDefaultRouter classes that chain off parent routers, plus optional serializer fields for building hyperlinks in nested contexts. It supports arbitrary nesting depth\u2014you can nest routers multiple levels deep\u2014and works with both Django ORM-based viewsets and custom ViewSet implementations. The package is lightweight, requires no Django app registration, and integrates directly into your URL configuration.","worth_installing":"Yes. The package is actively maintained (last commit 2026-08-10), has no known vulnerabilities, low install friction, and solves a genuine problem in REST API design. It is production-stable and widely used (top 5000 PyPI packages). Install it if you need to build hierarchical REST APIs with Django and Django REST Framework without manual routing logic."},"id":"drf-nested-routers","links":{"html":"https://skillfed.io/packages/drf-nested-routers","md":"https://skillfed.io/packages/drf-nested-routers.md","pypi":"https://pypi.org/project/drf-nested-routers/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-31","license_spdx":null,"license_treatment":"permissive","name":"drf-nested-routers","python_support":"supports_current","summary":"Nested resources for the Django Rest Framework"},"popularity":{"monthly_downloads":2158642,"position":3244,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.95.3"}
