Postman API client + POST/PUT parameters

Hi all,

FYI. I am using a REST client Chrome extension called Postman and really like it. Try it out.

If I do a simple POST to create a new architecture

curl -u admin:secret -H 'Accept:application/json' -H "Content-Type:application/json" -X POST -d "{"name":"foo"}"

then the parameters from the log are:

Started POST "/api/architectures" for at 2013-07-23 11:07:46 +0300
Processing by Api::V1::ArchitecturesController#create as JSON
Parameters: {"name"=>"foo", "architecture"=>{"name"=>"foo"}}

Why is "name" passed both as a root parameter and child parameter of "architecture"?

if I update an architecture

curl -u admin:secret -H 'Accept:application/json' -H "Content-Type:application/json" -X PUT -d "{"name":"bar"}"

then it's similar

Started PUT "/api/architectures/16" for at 2013-07-23 11:12:11 +0300
Processing by Api::V1::ArchitecturesController#update as JSON
Parameters: {"name"=>"bar", "id"=>"16", "architecture"=>{"name"=>"bar"}}