{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/3526","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/3526/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/3526/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/3526/events","html_url":"https://github.com/magento/magento2/issues/3526","id":136016919,"number":3526,"title":"Adding images via REST API gives error \"Property \\\"EntryId\\\" does not have corresponding setter in class","user":{"login":"algostore","id":12610349,"avatar_url":"https://avatars.githubusercontent.com/u/12610349?v=3","gravatar_id":"","url":"https://api.github.com/users/algostore","html_url":"https://github.com/algostore","followers_url":"https://api.github.com/users/algostore/followers","following_url":"https://api.github.com/users/algostore/following{/other_user}","gists_url":"https://api.github.com/users/algostore/gists{/gist_id}","starred_url":"https://api.github.com/users/algostore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algostore/subscriptions","organizations_url":"https://api.github.com/users/algostore/orgs","repos_url":"https://api.github.com/users/algostore/repos","events_url":"https://api.github.com/users/algostore/events{/privacy}","received_events_url":"https://api.github.com/users/algostore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/MX","name":"MX","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"kandy","id":100289,"avatar_url":"https://avatars.githubusercontent.com/u/100289?v=3","gravatar_id":"","url":"https://api.github.com/users/kandy","html_url":"https://github.com/kandy","followers_url":"https://api.github.com/users/kandy/followers","following_url":"https://api.github.com/users/kandy/following{/other_user}","gists_url":"https://api.github.com/users/kandy/gists{/gist_id}","starred_url":"https://api.github.com/users/kandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kandy/subscriptions","organizations_url":"https://api.github.com/users/kandy/orgs","repos_url":"https://api.github.com/users/kandy/repos","events_url":"https://api.github.com/users/kandy/events{/privacy}","received_events_url":"https://api.github.com/users/kandy/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-24T10:22:46Z","updated_at":"2016-06-14T09:30:10Z","closed_at":null,"body":"Magento 2.0.1 + sample data \r\n\r\nPUT rest/V1/products/test4/media/2\r\n\r\nData used:\r\n{\r\n    \"entry\":{\r\n       \"entryId\":\"2\",\r\n        \"media_type\": \"image\",\r\n        \"label\": \"Test\",\r\n        \"position\": 1,\r\n        \"disabled\": false,\r\n        \"types\": [\"image\"],\r\n        \"content\":{\r\n            \"base64_encoded_data\":\"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAkACQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/K5n4t/Grwb8APBc3iTx54s8M+CfDtvIkMuqa9qkGm2UTudqK00zKgZjwATkngV01eC/8FBf2yPhn+wx8K9H8cfEL+w5NRXVl0/wjBqE9taNcatPDLGiR3VwViswYmmElxI6JHEZNzYO1oqS5Vf0873drJdW9ku9tyoxu7ev5bvslu32PZPA3jzQ/if4P07xD4Z1nSfEWgaxAt1Yanpl3Hd2d7E3KyRSxko6Hsykg1rV86f8Er9G8K+H/wBj3TLfwr488DfEVbjV9U1XWNT8H6rDqWiwapf3s2oXdrbSREqIoZLooinD7AjMAzGvoutqkeWVv6+/r69dzOElJXW2vl17dPNdNugUUUVBQUUUUAFFFFABRRRQAUUUUAFFFFABRRRQB//Z\",\r\n            \"type\":\"image/jpeg\",\r\n            \"name\":\"test.jpg\"\r\n        }\r\n    }\r\n}\r\nOutput Error:\r\n\r\n{\"message\":\"Property \\\"EntryId\\\" does not have corresponding setter in class \\\"Magento\\\\Catalog\\\\Api\\\\Data\\\\ProductAttributeMediaGalleryEntryInterface\\\".\",\"trace\":\"#0 \\/data\\/web\\/magento2\\/vendor\\/magento\\/framework\\/Reflection\\/TypeProcessor.php(591): Magento\\\\Framework\\\\Reflection\\\\TypeProcessor->findAccessorMethodName(Object(Zend\\\\Code\\\\Reflection\\\\ClassReflection), 'EntryId', 'getEntryId', 'isEntryId')\\n#1 \\/data\\/web\\/magento2\\/vendor\\/magento\\/framework\\/Webapi\\/ServiceInputProcessor.php(138): Magento\\\\Framework\\\\Reflection\\\\TypeProcessor->findGetterMethodName(Object(Zend\\\\Code\\\\Reflection\\\\ClassReflection), 'EntryId')\\n#2 \\/data\\/web\\/magento2\\/vendor\\/magento\\/framework\\/Webapi\\/ServiceInputProcessor.php(262): Magento\\\\Framework\\\\Webapi\\\\ServiceInputProcessor->_createFromArray('Magento\\\\\\\\Catalog...', Array)\\n#3 \\/data\\/web\\/magento2\\/vendor\\/magento\\/framework\\/Webapi\\/ServiceInputProcessor.php(99): Magento\\\\Framework\\\\Webapi\\\\ServiceInputProcessor->convertValue(Array, 'Magento\\\\\\\\Catalog...')\\n#4 \\/data\\/web\\/magento2\\/vendor\\/magento\\/module-webapi\\/Controller\\/Rest.php(262): Magento\\\\Framework\\\\Webapi\\\\ServiceInputProcessor->process('Magento\\\\\\\\Catalog...', 'update', Array)\\n#5 \\/data\\/web\\/magento2\\/vendor\\/magento\\/module-webapi\\/Controller\\/Rest.php(160): Magento\\\\Webapi\\\\Controller\\\\Rest->processApiRequest()\\n#6 \\/data\\/web\\/magento2\\/var\\/generation\\/Magento\\/Webapi\\/Controller\\/Rest\\/Interceptor.php(24): Magento\\\\Webapi\\\\Controller\\\\Rest->dispatch(Object(Magento\\\\Framework\\\\App\\\\Request\\\\Http))\\n#7 \\/data\\/web\\/magento2\\/vendor\\/magento\\/framework\\/App\\/Http.php(115): Magento\\\\Webapi\\\\Controller\\\\Rest\\\\Interceptor->dispatch(Object(Magento\\\\Framework\\\\App\\\\Request\\\\Http))\\n#8 \\/data\\/web\\/magento2\\/vendor\\/magento\\/framework\\/App\\/Bootstrap.php(258): Magento\\\\Framework\\\\App\\\\Http->launch()\\n#9 \\/data\\/web\\/magento2\\/pub\\/index.php(37): Magento\\\\Framework\\\\App\\\\Bootstrap->run(Object(Magento\\\\Framework\\\\App\\\\Http))\\n#10 {main}\"}\r\n\r\n\r\nIs it possible to send image not via base64_encoded_data? Is so, let us know, in what way.\r\n\r\nPlease, help us.\r\nThanks in advance\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/225828351","html_url":"https://github.com/magento/magento2/issues/3526#issuecomment-225828351","issue_url":"https://api.github.com/repos/magento/magento2/issues/3526","id":225828351,"user":{"login":"ruby10","id":12557241,"avatar_url":"https://avatars.githubusercontent.com/u/12557241?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby10","html_url":"https://github.com/ruby10","followers_url":"https://api.github.com/users/ruby10/followers","following_url":"https://api.github.com/users/ruby10/following{/other_user}","gists_url":"https://api.github.com/users/ruby10/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby10/subscriptions","organizations_url":"https://api.github.com/users/ruby10/orgs","repos_url":"https://api.github.com/users/ruby10/repos","events_url":"https://api.github.com/users/ruby10/events{/privacy}","received_events_url":"https://api.github.com/users/ruby10/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T09:30:10Z","updated_at":"2016-06-14T09:30:10Z","body":"@kandy , @MomotenkoNatalia  , is there any update ?"}}
{"actor":{"display_login":"ruby10"}}