I have set up an Grid and Store which use a Model that is backed by a RestProxy. (Full code at the end of this post.) The basic actions read, delete and update are working fine, but whenever I add a record, very weird behaviour occurs. First a POST is generated to create a new instance (which is fine), but after the executing of this request another PUT request is generated. After these requests, two new records reside in the grid (and) store, one with an empty id ("") and one with the correct id given back by the response to the POST request.

Any help would be appreciated.

The POST request right after adding the new record
Code:
{
  "id":"",
  "name":"Nieuwe locatie",
  "total_places":"1",
  "used_places":"",
  "address":"asdfasd",
  "zipcode":"1234ab",
  "city":"adfa",
  "remarks":
  "asdfads"
}
The response to the POST request:
Code:
{
  "data":{
    "id":2,
    "name":"Nieuwe locatie",
    "total_places":"1",
    "used_places":12,
    "address":"asdfasd",
    "zipcode":"1234ab",
    "city":"adfa",
    "remarks":"asdfads"
  },
  "success":true
}
Finally the PUT request that is generated right afterwards:
Code:
{
  "id":"",
  "name":"Nieuwe locatie",
  "total_places":"1",
  "used_places":"",
  "address":"asdfasd",
  "zipcode":"1234ab",
  "city":"adfa",
  "remarks":"asdfads"
}
Response Headers
For completeness, the model definition:
Code:
wjv.model.location = Ext.regModel('Location', {
    associations: [{
    	type: 'hasMany',
    	name: 'logs',
    	model: 'Log'
    }],
	fields: [
		'id',
		'name',
		'total_places',
		'used_places',
		'address',
		'zipcode',
		'city',
		'remarks'
	],
    proxy: {
    	reader: {
			root: 'data',
    		type: 'json'
    	},
        type: 'rest',
        url : '/rest/locations'
    }
});
PS: On a side-note: Is it just me or is there no documentation available on how the server should format responses to create, delete and update requests? Neither in ext4 or ext3 on any kind of proxy resp. store?