Skip to content

Conversation

@Kuruyia
Copy link
Collaborator

@Kuruyia Kuruyia commented Dec 23, 2023

This implements the profile service 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 the DELETE /profile/{userId} API route
  • findOneOfUser : gets the profile of a user, corresponds to the GET /profile API route
  • findAllRequestingDeletion : gets the profiles of all users requesting their account to be deleted - this is an administrative task, corresponds to the GET /profile/requestDeletion API route
  • requestDeletionOfUser : requests the deletion of a user, corresponds to the POST /profile/requestDeletion API route
  • saveOneOfUser : creates or updates an entire profile, corresponds to the PUT /profile API route
  • updateOneOfUser : partially updates a profile, corresponds to the PATCH /profile API route

Availability

  • createOneOfUser : creates an availability for a user, corresponds to the POST /profile/availabilities API route
  • deleteOneOfUser : deletes an availability of a user, corresponds to the DELETE /profile/availabilities/{availabilityId} API route
  • findAllOfUser : gets all availabilities of a user, corresponds to the GET /profile/availabilities API route
  • findOneOfUser : gets a single availability of a user, corresponds to the GET /profile/availabilities/{availabilityId} API route
  • updateOneOfUser : partially updates an availability of a user, corresponds to the PATCH /profile/availabilities/{availabilityId} API route

Reference

  • createOneOfUser : creates a reference for a user, corresponds to the POST /profile/references API route
  • deleteOneOfUser : deletes a reference of a user, corresponds to the DELETE /profile/references/{referenceId} API route
  • findAllOfUser : gets all references of a user, corresponds to the GET /profile/references API route
  • findOneOfUser : gets a single reference of a user, corresponds to the GET /profile/references/{referenceId} API route
  • updateOneOfUser : partially updates a reference of a user, corresponds to the PATCH /profile/references/{referenceId} API route

Experience

  • createOneOfUser : creates an experience for a user, corresponds to the POST /profile/experiences API route
  • deleteOneOfUser : deletes an experience of a user, corresponds to the DELETE /profile/experiences/{experienceId} API route
  • findAllOfUser : gets all experiences of a user, corresponds to the GET /profile/experiences API route
  • findOneOfUser : gets a single experience of a user, corresponds to the GET /profile/experiences/{experienceId} API route
  • updateOneOfUser : partially updates an experience of a user, corresponds to the PATCH /profile/experiences/{experienceId} API route

Employee evaluation

  • findAllOfUser : gets all evaluations of a user, corresponds to the GET /profile/evaluations API route
  • findOneOfUser : gets a single evaluation of a user, corresponds to the GET /profile/evaluations/{evaluationId} API route

Job

  • findMultiple : gets multiple jobs

Job category

  • findMultiple : gets multiple job categories
  • findOne : gets a single job category

Company

  • findMultiple : gets multiple companies
  • ensureExists : creates a company by its name if it doesn't already exist, then returns it

@Kuruyia Kuruyia added the enhancement New feature or request label Dec 23, 2023
@Kuruyia Kuruyia self-assigned this Dec 23, 2023
@Kuruyia Kuruyia merged commit a2b4026 into main Dec 24, 2023
@Kuruyia Kuruyia deleted the feat/profile branch December 24, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants