-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST multiple products to .../api/products not wieling? #226
Comments
Fixed it using multiple Tasks (for every POST single task) |
@oeloe100 can you expand on ur answer that solved the problem. I am having the same issue when posting multi items to an order. |
Hi there @champcbg , you could create a simple task like:
|
Ahhhh. ok. you were referring to the client application. Thats doesnt help me. Thanks for the feedback though |
So what problem do you have? meby i can help? |
The problem i am having is when trying to post an order with multiple items on the order. What happens is and order with X number of order items is posted to the order API, the order only gets created with 1 order item. Its the last order item in the list of items. Debugging the issue, I know it is a issue in the model binding. The order resource gets the order the correct way with X number of order items. when it comes out of the model Binding to build the Delta there is only 1 order item. I think this is the problem method
I am just getting familiar with the code, but I think what is happening is after the 1st item gets added to the collection, every item that comes through after that just updates that item, a new item is not being added to the collection. |
Hi There,
Im not sure of this is the right way or place To adress my problem. Ive also poster this question on nopcommerce forum without success.
POSTING product data from eighteir my application or Postman to the Web API endpoint only Works for one single product.
My question is, how to map multiple products at once?
The text was updated successfully, but these errors were encountered: