Task #19071
UI: Implement misc feature
Added by Adarsh Shukla 12 months ago.
Updated 11 months ago.
Description
Add validation for the API response. If a required field is empty or not received from the API, the frontend should reject the response and display an error message.
Implement basic error handling. For example, if the API returns a response indicating that data was not found, display this message in a toast notification on the UI.
- Status changed from New to In Progress
- % Done changed from 0 to 10
Added some common response interfaces and removed unused libraries and packages.
- % Done changed from 10 to 30
Added API error handling code.
- % Done changed from 30 to 50
- % Done changed from 50 to 80
Wrote custom method to validate API response data with schema model, also implemented AJV MIT licence for the same.
- % Done changed from 80 to 90
- % Done changed from 90 to 100
- Status changed from In Progress to Closed
Also available in: Atom
PDF