Re: using single view function or class for multiple types of users

2019-06-06 Thread Harsh Gundecha
thank you this perfectly makes sense On Tuesday, June 4, 2019 at 9:32:23 PM UTC+5:30, RyuCoder wrote: > > RE: "slight change in output" > First of all define what it really means. What needs to be changed and how. > > RE " is it a good idea to use same URL for both and serve by checking user > ty

Re: using single view function or class for multiple types of users

2019-06-04 Thread Chetan Ganji
RE: "slight change in output" First of all define what it really means. What needs to be changed and how. RE " is it a good idea to use same URL for both and serve by checking user type" Yes and No. It depends on your mentality. I personally prefer to have separate endpoints for different type

using single view function or class for multiple types of users

2019-06-03 Thread Harsh Gundecha
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 f