How to register a generic ApiView to the router? #8553
Unanswered
kahunacohen
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the
TokenObtainPairView
view from the package simple-jwt and I am mapping it to the following url like this so I get an endpoint ofauth/refresh
that given an email and password sends an access/refresh token:I'd like to register this to the router so I can see the endpoint in the auto-generated endpoints at the root. The problem is that
TokenObtainPair
is a genericApiView
, not aViewSet
so this doesn't work. What is the solution here? Create a proxyViewSet
? If so, what would the queryset be?Beta Was this translation helpful? Give feedback.
All reactions