save!

It will create the resource if id is not set, otherwise it will update it.
The resource fields value will be updated by the response body content.

toto=MyModule::Author.newtoto.save!# POST /authors.json { author: {} }toto.id# should have been set by through the reponsetoto.name='Toto'toto.save!# PUT {author: {name: 'Toto'}} -> /authors/{toto.id}.json

Only changed values will be passed through the body content.

You can clear changes with #clear_changes!
You can now which fields has been marked has changed with #changes

author=Author.show(1)author.nested_index(Book,limit:100)book=author.nested_show(Book,1)book.title='New title'author.nested_update(book)author.nested_delete(book)author.nested_create(book)author.nested_all(Book,limit:10)# retrieve all books, quering the server by batch of 10;