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.
User description
add specialties to filter list, and return specialties endpoint
Type
enhancement, tests
Description
usersSpecialties
for fetching user specialties along with the total count.UserControllerSpecialties
andUserServiceSpecialties
to handle the specialties logic.UserServiceList
to support filtering by specialties and include total count in the response.usersSpecialties
endpoint.Changes walkthrough
user.function.ts
Add User Specialties Endpoint Registration
src/functions/user.function.ts
UserControllerSpecialties
to the user functions.usersSpecialties
for fetching userspecialties.
specialties.ts
Implement User Specialties Controller
src/functions/user/controllers/user/specialties.ts
UserControllerSpecialties
for handling specialties requests.specialties.ts
Add User Service for Specialties
src/functions/user/services/user/specialties.ts
UserServiceSpecialties
function to fetch specialties.list.ts
Enhance User List Service with Specialties Filtering
src/functions/user/services/user/list.ts
specialties
query parameter handling inUserServiceList
.start-end-date.spec.ts
Mock Date in Availability Tests
src/library/availability/start-end-date.spec.ts
jest.config.js
Configure Jest Setup Files
jest.config.js
setupFiles
configuration to Jest for environment setup.launch.json
Add Debug Configuration for Jest Tests in VSCode
.vscode/launch.json
openapi.yaml
Document Users Specialties Endpoint in OpenAPI
openapi/openapi.yaml
usersSpecialties
endpoint.