gholamimohsen / StilGalleriet

StillGalleriet
3 stars 0 forks source link

Order error handling #52

Closed Ilhamfeysel closed 5 months ago

Ilhamfeysel commented 5 months ago
Shumisen commented 5 months ago

Everything works fine.

You handle advertisement and buyer ID, but not seller. I can create an order with a seller that doesn't exist in database.

It is good that you have message for the exceptions but they don't reach the "user". The messages are inside the IDE(IntelliJ). Ideally you send the message as a response in Postman. You can refer to my createReview method as an example.

I also fixed Get all for Orders. The controller was missing a proper path.