Revert "[server][RestResourceAction] remove needless add `id` to JSON"

This reverts commit 26b41bde0b81b248ec7ee78cef4322b71156bed3.

`id` is used in test.