The Pharmacy POS System Backend is the server-side component of our comprehensive pharmacy management software. It is developed using Spring Boot, Java, Spring Security ,and Microservices Architecture
Pull Request: Implement New Endpoints and Fix Issues
Title
Implement New Endpoints and Resolve Issues Related to Employer Management
Description
This pull request addresses multiple issues and implements new endpoints related to employer management within the system. The changes include adding functionalities to retrieve branch managers, update branch manager details, and retrieve employers by branch ID and role. Additionally, it fixes issues related to branch manager retrieval and employer updates.
Changes Made
1. New Endpoints
Branch Managers Retrieve: Implemented an endpoint to retrieve branch managers by branch ID.
Change Manager Update: Added functionality to update branch managers, including handling changes in the backend and reflecting updates in the database.
Update Existing Branch Manager Details: Implemented an endpoint to update existing branch manager details.
Branch Employer Retrieve by Branch ID and Role: Added an endpoint to retrieve branch employers by branch ID and role.
Get Employers By Branch ID: Implemented an endpoint to retrieve all employers associated with a specific branch.
2. Issue Fixes
Resolved issues related to branch manager retrieval and employer updates, ensuring smooth functionality and error handling.
Updated Endpoints
Branch Managers Retrieve: GET /lifepill/v1/branch-manager/managers/by-branch/{branchId}
Change Manager Update: POST /lifepill/v1/branch-manager/change-manager
Update Existing Branch Manager Details: PUT /lifepill/v1/branch-manager/managers/by-branch/{branchId}
Branch Employer Retrieve by Branch ID and Role: GET /lifepill/v1/branch-manager/employer/by-branch/role/{branchId}?role={role}
Get Employers By Branch ID: GET /lifepill/v1/employers/get-employers-by-branch/{branchId}
Acceptance Criteria
All new endpoints should retrieve data accurately and handle errors gracefully.
Endpoints should return appropriate responses, including success messages and error codes, as per the acceptance criteria defined for each issue.
Test Plan
Unit tests for each new endpoint to verify functionality.
Integration testing to ensure proper interaction with the database and other components.
Manual testing in a local environment to validate endpoint responses and error handling.
Endpoints
1. Branch Managers Retrieve
URL: GET /lifepill/v1/branch-manager/managers/by-branch/{branchId}
Request: No request body required. Replace {branchId} in the URL with the actual branch ID.
[Issue #122]: Implement Endpoint to Retrieve Employer Name and ID
[Issue #121]: Implement Endpoint to Retrieve Branch Manager
[Issue #120]: Add Functionality to Update Branch Manager
Checklist
[x] Implemented new endpoints as per the provided specifications.
[x] Fixed issues related to branch manager retrieval and employer updates.
[x] Verified functionality through unit tests, integration tests, and manual testing.
[x] Ensured proper error handling and response messages for all endpoints.
ScreenShot
Conclusion
This pull request enhances employer management functionalities within the system by adding new endpoints and resolving issues related to branch manager retrieval and updates. Reviewers are encouraged to test the new functionalities thoroughly and provide feedback.
Best regards,
Pramitha Jayasooriya,
Backend Developer at LifePill,
https://pramithamj.me
Pull Request: Implement New Endpoints and Fix Issues
Title
Implement New Endpoints and Resolve Issues Related to Employer Management
Description
This pull request addresses multiple issues and implements new endpoints related to employer management within the system. The changes include adding functionalities to retrieve branch managers, update branch manager details, and retrieve employers by branch ID and role. Additionally, it fixes issues related to branch manager retrieval and employer updates.
Changes Made
1. New Endpoints
2. Issue Fixes
Updated Endpoints
GET /lifepill/v1/branch-manager/managers/by-branch/{branchId}
POST /lifepill/v1/branch-manager/change-manager
PUT /lifepill/v1/branch-manager/managers/by-branch/{branchId}
GET /lifepill/v1/branch-manager/employer/by-branch/role/{branchId}?role={role}
GET /lifepill/v1/employers/get-employers-by-branch/{branchId}
Acceptance Criteria
Test Plan
Endpoints
1. Branch Managers Retrieve
GET /lifepill/v1/branch-manager/managers/by-branch/{branchId}
{branchId}
in the URL with the actual branch ID.2. Change Manager Update
POST /lifepill/v1/branch-manager/change-manager
3. Update Existing Branch Manager Details
PUT /lifepill/v1/branch-manager/managers/by-branch/{branchId}
4. Branch Employer Retrieve by Branch ID and Role
GET /lifepill/v1/branch-manager/employer/by-branch/role/{branchId}?role={role}
{branchId}
in the URL with the actual branch ID and{role}
with the desired role.5. Get Employers By Branch ID
GET /lifepill/v1/employers/get-employers-by-branch/{branchId}
{branchId}
in the URL with the actual branch ID.Related Issues
Checklist
ScreenShot
Conclusion
This pull request enhances employer management functionalities within the system by adding new endpoints and resolving issues related to branch manager retrieval and updates. Reviewers are encouraged to test the new functionalities thoroughly and provide feedback.
Best regards,
Pramitha Jayasooriya, Backend Developer at LifePill, https://pramithamj.me