[Solved]-How to use parameters in DRF router

20👍

Use regex notation

router.register(
    r'(?P<client_id>\d+)/requests',
    views.ClientRequests,
    basename='clients request api endpoint'
)
👤JPG

Leave a comment