Team-Project-Zeus / Backend

0 stars 0 forks source link

Redirect instead of error with validation #11

Closed redouan778 closed 4 years ago

redouan778 commented 4 years ago

Found in release 1 by Redouan Sellami. Problem: *You will redirect to the home page instead of receiving an error.

Expected behavior: *Error that says field hasn't been filled in with error code:422

Steps to replicate: Open the program Postman. you need to send a request to this link: http://127.0.0.1:8000/api/appointment/edit/5. *with as body: { "driving_instructor": 30, "start_time": "2019-10-17 05:00:00", "end_time": "2019-10-17 06:00:00" }

Authorization: Bearer Token: Token. You will redirect to the home page instead of receiving an error.

VincentvanMedenbach commented 4 years ago

Solved in release #1