feat(profile): implement service #40
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This implements the
profileservice in the backend. The following methods were implemented to be used through the message broker:Profile
deleteOne: deletes a profile - this is an administrative task, corresponds to theDELETE /profile/{userId}API routefindOneOfUser: gets the profile of a user, corresponds to theGET /profileAPI routefindAllRequestingDeletion: gets the profiles of all users requesting their account to be deleted - this is an administrative task, corresponds to theGET /profile/requestDeletionAPI routerequestDeletionOfUser: requests the deletion of a user, corresponds to thePOST /profile/requestDeletionAPI routesaveOneOfUser: creates or updates an entire profile, corresponds to thePUT /profileAPI routeupdateOneOfUser: partially updates a profile, corresponds to thePATCH /profileAPI routeAvailability
createOneOfUser: creates an availability for a user, corresponds to thePOST /profile/availabilitiesAPI routedeleteOneOfUser: deletes an availability of a user, corresponds to theDELETE /profile/availabilities/{availabilityId}API routefindAllOfUser: gets all availabilities of a user, corresponds to theGET /profile/availabilitiesAPI routefindOneOfUser: gets a single availability of a user, corresponds to theGET /profile/availabilities/{availabilityId}API routeupdateOneOfUser: partially updates an availability of a user, corresponds to thePATCH /profile/availabilities/{availabilityId}API routeReference
createOneOfUser: creates a reference for a user, corresponds to thePOST /profile/referencesAPI routedeleteOneOfUser: deletes a reference of a user, corresponds to theDELETE /profile/references/{referenceId}API routefindAllOfUser: gets all references of a user, corresponds to theGET /profile/referencesAPI routefindOneOfUser: gets a single reference of a user, corresponds to theGET /profile/references/{referenceId}API routeupdateOneOfUser: partially updates a reference of a user, corresponds to thePATCH /profile/references/{referenceId}API routeExperience
createOneOfUser: creates an experience for a user, corresponds to thePOST /profile/experiencesAPI routedeleteOneOfUser: deletes an experience of a user, corresponds to theDELETE /profile/experiences/{experienceId}API routefindAllOfUser: gets all experiences of a user, corresponds to theGET /profile/experiencesAPI routefindOneOfUser: gets a single experience of a user, corresponds to theGET /profile/experiences/{experienceId}API routeupdateOneOfUser: partially updates an experience of a user, corresponds to thePATCH /profile/experiences/{experienceId}API routeEmployee evaluation
findAllOfUser: gets all evaluations of a user, corresponds to theGET /profile/evaluationsAPI routefindOneOfUser: gets a single evaluation of a user, corresponds to theGET /profile/evaluations/{evaluationId}API routeJob
findMultiple: gets multiple jobsJob category
findMultiple: gets multiple job categoriesfindOne: gets a single job categoryCompany
findMultiple: gets multiple companiesensureExists: creates a company by its name if it doesn't already exist, then returns it