Unable to create the order
Hi Sir,
http://localhost:8080/cart/0dcd4317-406b-4cc1-b56a-c7870a419fa9/order
could you please help me for creating order.
i am testing this API in swagger and i am facing the issue with validator
Response Body { "timestamp": 1553771519116, "status": 500, "error": "Internal Server Error", "exception": "java.lang.IllegalStateException", "message": "Invalid target for Validator [net.vatri.ecommerce.validators.CartValidator@243f003c]: net.vatri.ecommerce.models.Order@2264ef0e", "path": "/cart/0dcd4317-406b-4cc1-b56a-c7870a419fa9/order" }
Please help me out for the same
Hi Maqsood.
As I can see you have created CartValidator , have you? Maybe error is in there?
Thanks for the response:) As I can see you have created CartValidator , have you? Maybe error is in there? Ans : There is no build errors , i am facing issue during create new order API Example - > /cart/0dcd4317-406b-4cc1-b56a-c7870a419fa9/order
Could u please check with your code and let me know
It's being long time I worked on this.
Did you create net.vatri.ecommerce.validators.CartValidator class ? I don't see it in my Git sources.