zetonteam / zeton_django

Hacktoberfest
Apache License 2.0
10 stars 2 forks source link

Discussion on subject of urls structure #111

Open pyexplorerhs3 opened 1 month ago

pyexplorerhs3 commented 1 month ago

??Subject Discussion?? Pure REST endpoints without request.post or combine with both (Proposition from https://github.com/zetonteam/zeton_django/pull/110)

MateuszBelczowski commented 1 month ago

There was a discussion about how to structure URLs for nested resources (e.g. tasks).

In my opinion we should stick to the convention with having both IDs (student ID and task ID) explicitly in the URL (/api/students/<student_id>/tasks/<task_id>). An example would be /api/students/1/tasks/2