{"repo":"alanjds/drf-nested-routers","free":true,"listed":false,"github":"https://github.com/alanjds/drf-nested-routers","clone":"git clone https://github.com/alanjds/drf-nested-routers.git","description":"Nested Routers for Django Rest Framework","language":"Python","stars":1798,"topics":["django","django-rest-framework","rest","nested-resources","hacktoberfest"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"This is a work in progress. It \"works for me\" at www.apiregistro.com.br, but I cannot warranty that it fully \"works everywhere\" yet. Join us on Gitter (below) if you need some help. drf-nested-routers This package provides routers and fields to create nested resources in the Django Rest Framework Nested resources are needed for full REST URL structure, if one resource lives inside another. The following example is about Domains and DNS Nameservers. There are many domains, and each domain has many nameservers. The \"nameserver\" resource does not exist without a domain, so you need it \"nested\" inside the domain. Requirements & Compatibility - Python (3.9, 3.10, 3.11, 3.12, 3.13) - Django (4.2, 5.0, 5.1, 5.2) - Django REST Framework (3.14, 3.15, 3.16) It may work with lower versions, but since the release 0.94.2 is no more tested on CI for Python 3.8 or lower. And since 0.92.1 is no more tested on CI for Pythons 2.7 to 3.5, Django 1.11 to 2.1 or DRF 3.6 to 3.10. Before that, the release 0.90.2 was tested also with DRF 2.4.3 up to 3.7. Installation You can install this library using pip: It is not needed to add this library in your Django project's settings.py file, as it does not contain any app, signal or model. Quickstart The desired URL signatures are: How to do it (example): Advanced Hyperlinks for Nested resources (optional) If you need hyperlinks for nested relations, you need a custom serializer. There you will inform how to access the parent of the instance being serializ","default_branch":null,"files":null,"tree":[],"storefront":"/r/alanjds","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alanjds/drf-nested-routers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}