A web application designed to streamline job searches by providing users with a centralized platform to browse job listings, manage applications, and track progress. The app features user-friendly navigation, tailored job recommendations, and an efficient system for organizing job-hunting activities.
MIT License
1
stars
4
forks
source link
Create a JobPostDto class to transfer data between controller and service layer to increase security #13
Is your feature request related to a problem? Please describe.
If we use entity class to transfer data between the service layer and controller layer and send the Json file of entity as a response of the request to app it may reveal the structure of database and relations which can create vulnerabilities in the app
Describe the solution you'd like
We can create a dto( data tranfer object) for the JobPost entity and add only the necessary data as fields that is to be transferred
Describe alternatives you've considered
The dto(data transfer object) can contain all the necessary fields of the entity class which are to be transferred as a response
Additional context
We can use model mapper to map both dto and entity class for more effeciency
Is your feature request related to a problem? Please describe. If we use entity class to transfer data between the service layer and controller layer and send the Json file of entity as a response of the request to app it may reveal the structure of database and relations which can create vulnerabilities in the app
Describe the solution you'd like We can create a dto( data tranfer object) for the JobPost entity and add only the necessary data as fields that is to be transferred
Describe alternatives you've considered The dto(data transfer object) can contain all the necessary fields of the entity class which are to be transferred as a response
Additional context We can use model mapper to map both dto and entity class for more effeciency
E.g- Course entity class- Course dto class-