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:
users/{uid}/semesters/{sid}/lessons
However, we can do that with just
1)
/lessons
Or if we want to keep the information that this new lesson will be related to users and semesters, we can do like:
2)
/users/semesters/lessons
I think we should remove ids inside the endpoint URLs, but I am not sure which option to choose. 1 or 2?
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?