ve-backend-internship-spring2022 / EduManagementLab

MIT License
0 stars 4 forks source link

Change course membership routes #39

Closed martinvehmas closed 2 years ago

martinvehmas commented 2 years ago

Change the route for POSTing a membership. Add an "s" att the end. You post a membership to the memberships collection. Change the route for DELETEing a membership. Add an "s" and the userId for the user membership that is going to be deleted.

image

natthaphongphengsa commented 2 years ago

should i change the name on Method as well? image Or only Route?

martinvehmas commented 2 years ago

I think the name of the method is good. You update a membership.

But in the route you specify that you want to update one record in the collection memberships by adding a userId to the route.