Monday, June 3, 2019

using single view function or class for multiple types of users

what is recommended practice for serving same object to multiple types of users with slight change in output
for e.g book object or issued book object to lets say staff and students, is it a good idea to use same URL for both and serve by checking user type
PS: its a JSON based rest API in rest framework

Thank you
Regards, Harsh

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/179bef94-4cf0-441c-a126-f7b8ab0704bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment