Refactor test
Accepts JSON request body on POST and PUT request
Remove nesting and treat entire params as resource attributes