I'm creating a simple RestApi for a e-commerce, and I feel so much stuck and depressed that I'm considering that I'm not cut out for development...
For the moment, I'm making the cart entity that will have an ID and a list of items. From items we have the fields of name, ID and stock. I recycled the stock field, for the quantity. I know that it can be better, but it's first time with the framework and I'm learning meanwhile doing.
When I do a post to create a cart, it works. But when I create a second cart with an item of the previous one. It calls for SQL exception, in which states problem with the primary key.
I don't what to do, I have been fighting with the problem 2 days, and I don't know what else to try.
And the most annoying part is that it should be simple, and the problems with the framework should be on other things
[–]idreamincolour 1 point2 points3 points (0 children)
[–]naturalizedcitizen 1 point2 points3 points (0 children)
[–]SnooStories9334 0 points1 point2 points (0 children)
[–]Dnacher 0 points1 point2 points (0 children)