You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So how about this, I know we discussed this before but
I vote for adding new endpoints:
/semesters/* when you call it, it does whatever it does for the authenticated user's semesters
/lessons/* when you call it, it assumes authenticated user and the current semester
Maybe we just do an internal forwarding to the existing endpoints and this way, if and admin wants to do stg, he/she can do with the long endpoint but the normal user is not bothered with writing that long url everytime.
I just realized that we are keeping ids in endpoint URLs and that makes it longer. For example, for creating a lesson we are using this endpoint URL:
However, we can do that with just
1)
Or if we want to keep the information that this new lesson will be related to users and semesters, we can do like:
2)
I think we should remove ids inside the endpoint URLs, but I am not sure which option to choose. 1 or 2?
The text was updated successfully, but these errors were encountered: