question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose endpoints in router

See original GitHub issue

It would be useful if djoser could register its endpoints into a DefaultRouter. Then, it would be possible to import its endpoints into the Browsable API root.

I would be willing to contribute this feature.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
abaybekcommented, Aug 8, 2018

Yeah. It would be nice feature. My solution was like this:

class APIV1View(views.APIView):
    permission_classes = (IsAuthenticated,)

    def get(self, request, format=None):
        content = {
            'auth': reverse('root', request=request, format=format),
            # etc 
}
0reactions
zefciucommented, Jan 21, 2019

Yeah, but these are implemented with views, not viewsets. So putting them into a router will require some more serious refactor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Routes and Endpoints | REST API Handbook
A route is the “name” you use to access endpoints, used in the URL. A route can have multiple endpoints associated with it,...
Read more >
Routing & Input - R Plumber
An incoming HTTP request must be “routed” to one or more R functions. Plumber has two distinct families of functions that it handles:...
Read more >
Routes - Networking | OpenShift Container Platform 3.11
An OpenShift Container Platform route exposes a service at a host name, ... A router uses the service selector to find the service...
Read more >
API Routes: Introduction - Next.js
API routes provide a solution to build your API with Next.js. Any file inside the folder pages/api is mapped to /api/* and will...
Read more >
Routing traffic to an Amazon Virtual Private Cloud interface ...
To route domain traffic to an interface endpoint, use Amazon Route 53 to create an alias record. An alias record is a Route...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found