I send via Advanced Rest Client to Phalcon
$app->put('/feedback/{id:[0-9]+}', function ($id) use ($app) { $test = $app->request->getJsonRawBody(); file_put_contents('test2.txt',json_encode($test),FILE_APPEND | LOCK_EX); Everything is normally written, read
this.resource = $resource(url, {}, { query: {method: 'GET', params: {quest_id: '@quest_id'}, isArray: true}, delete: {method: 'DELETE', params: {}, isObject: true}, save: {method: 'POST'}, update: { method: 'PUT', headers: { 'Content-Type': 'application/json' }, params: {quest_id: '@quest_id',feedback:'korolariya'} } }); $ scope.feedback.resource.update ({"feedback": "korolariya", "user_id": "24", "quest_id": "5"});
The request goes away but there is nothing in json, and it doesn't go to POST because PUT
