We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The POST /owners/{ownerId}/pets does not return a 404 error when the ownerId does not exist but an error 400
POST /owners/{ownerId}/pets
ownerId
400
{ "className": "org.springframework.dao.DataIntegrityViolationException", "exMessage": "could not execute statement [integrity constraint violation: foreign key no parent ; FK_PETS_OWNERS table: PETS value: 222] [insert into pets (birth_date,name,owner_id,type_id,id) values (?,?,?,?,default)]; SQL [insert into pets (birth_date,name,owner_id,type_id,id) values (?,?,?,?,default)]; constraint [FK_PETS_OWNERS]" }
Same behaviour when a Pet does not exist
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
POST /owners/{ownerId}/pets
does not return a 404 error when theownerId
does not exist but an error400
Same behaviour when a Pet does not exist
The text was updated successfully, but these errors were encountered: