api controllers updated to accept put delete request