I have created a custom api and add some getters and setter, I'm looking to find out if it's possible to pass key pair values in the post without having to set the setters. When I call the api I get an exception and in my exception log:
...Message: Property "MyItemId" does not have corresponding setter in
class "Vendor\Module\Api\CustomRefundInterface"...
My request:
{
"test": [
{
"MyItemId": "157061",
"Quantity": "1",
"Amount": "44.99",
"MoreStuf": {
"Code": "200",
"Name": "OK"
},
"comments": "Just another Comment"
}
]
}
Can I send any key pair value without having to worry about the setters and how?
Any help Thanks