[server][RestResourceAction] Extract common code for RestResourceAction PUT/POST

related to #873