Mayank2808sharma / IRCTC-backend

27 stars 28 forks source link

Request input validations should be implemented. #34

Closed harsh-haria closed 6 months ago

harsh-haria commented 6 months ago

We should add a middleware for all the endpoints that checks for the inputs that are required for a particular endpoint. If any of the inputs are missing(if required) or are not of the correct type, the server should return the response to the client with the issue without processing anything in the controller. Sever side validations will decrease the chance of server returning 5XX errors. I would be more than happy to help with this issue. Can you please assign this issue to me under GSSOC 2024 ?

Mayank2808sharma commented 6 months ago

@harsh-haria Some one is already working on that