Basically I have a rest API like this:
/api/drive
And it takes a body for PUT which is either "true" or "false".
I'm using dropwizard framework with Java, and boolean drive is one of my parameters in the PUT method of my resource class.
Everything works as expected, but I was testing on Postman and see even if I put another value like "notABoolean" in the request body, the request itself is still successful. It just treats it as "false". Does this align with REST principles, or does it make more sense to throw a 400 BAD REQUEST error if the body isn't true/false?