Closed martinvehmas closed 2 years ago
should i change the name on Method as well? Or only Route?
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.
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.