[FEATURE REQUEST]: Endpoint Data Validation
simply-alliv opened this issue · comments
Is your feature request related to a problem? Please describe.
To prevent unnecessary calls to the backend, endpoint request data should be validated.
Describe the solution you'd like
- Create validation rules with Express Validator, Joi, or any other Node API validation middleware.
- Sanitize parameters and remove all unexpected parameters.
- Implement data validation (validate data types and format of parameters).
- Implement database validation (validate that a resource ID sent by the user is in the database).
- Implement business rules validation (validate that a user can access other people records only if they are an employer or admin)
Describe alternatives you've considered
You can comment if you know of a better solution to this.
Additional context
For more information, see:
I am interested in working on this feature.
This is of interest to me. Do let me know how i can be of help