completed crud action with api and version v2 and its test cases