Update rest.js

Get the correct types set up for the different attributes.  Things that were objects were being sent in as strings.