introduction-to-postman-course icon indicating copy to clipboard operation
introduction-to-postman-course copied to clipboard

Validation

Open Nik1291 opened this issue 2 years ago • 1 comments

List of books GET /books Returns a list of books. Optional query parameters: type: fiction or non-fiction limit: a number between 1 and 20.

If the number is above 20 it is showing an error for 400. But if we put the value below the number 1 ex. 0 or 0.5etc. No error is being shown. In this scenarios the error should be shown for the value below the number 1 right? Can you help me for this, whether the error should be shown or not, if the value is below the number 1.

Nik1291 avatar Oct 20 '22 09:10 Nik1291

List of books GET /books Returns a list of books. Optional query parameters: type: fiction or non-fiction limit: a number between 1 and 20.

If the number is above 20 it is showing an error for 400. But if we put the value below the number 1 ex. 0 or 0.5etc. No error is being shown. In this scenarios the error should be shown for the value below the number 1 right? Can you help me for this, whether the error should be shown or not, if the value is below the number 1.

I hope this API is only for practicing some logic of HTTP/HTTPS requests we can except cent percent performance of this API. I think API creator does not handled this type of exceptions.

Dhamu785 avatar Jul 06 '23 08:07 Dhamu785