lib/rating_chgk_v2/rest/teams.rb in rating-chgk-v2-1.2.0 vs lib/rating_chgk_v2/rest/teams.rb in rating-chgk-v2-1.3.0
- old
+ new
@@ -16,8 +16,20 @@
end
def team_tournaments(id, params = {})
collection_load name: 'TeamTournaments', ep_name: 'Teams', ep_params: [[id, :tournaments], params]
end
+
+ def create_team(params)
+ model_load name: 'Team', ep_name: 'Teams', ep_params: [[], params], method: :do_post
+ end
+
+ def update_team(id, params)
+ model_load name: 'Team', ep_name: 'Teams', ep_params: [id, params], method: :do_put
+ end
+
+ def delete_team(id)
+ endpoint('Teams', id).do_delete
+ end
end
end
end