Hej mam taki problem i nie wiem co jest źle. Jak chce dodać książkę w postman to wygląda tak:
{
"title": "Przykładowa książka",
"author": "Jan Kowalski",
"price": 29.99,
"quantity": 10,
"status": "AVAILABLE",
"category": {
"id": 1,
"name": "Fantasy"
}
}
{
"timestamp": "2023-07-24T10:50:38.588+00:00",
"status": 500,
"error": "Internal Server Error",
"path": "/books"
}
Może źle json jest napisany albo źle łącze tabele book z category?
https://github.com/LukaszCh233/Books_store