miku0129 / prj_vue-onyva-backend

0 stars 0 forks source link

Naming of route is not following convention #3

Open miku0129 opened 1 month ago

miku0129 commented 1 month ago

Not "https://app.msano.ovh/www/api/etudiant" but "https://app.msano.ovh/www/api/etudiants". As like "estudiants", it should be in plural from.

Cyrille37 commented 1 month ago

I agree, it's a collection of "etudiants" ;-)

miku0129 commented 1 month ago

Yes, I noticed it after deployment 😂 I will fix it.

Cyrille37 commented 1 month ago

Quelle convention ?

Je te propose REST. Laravel propose le concept de resource avec eloquent-resources.

miku0129 commented 1 month ago

Name of the routing should be fixed -> NOT https://app.msano.ovh/www/api/etudiant/edit/{id} -> https://app.msano.ovh/www/api/etudiants/{id}/edit/