Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/loan #31

Merged
merged 11 commits into from
Apr 24, 2024
Merged

Feat/loan #31

merged 11 commits into from
Apr 24, 2024

Conversation

superpollo2
Copy link
Contributor

Implemented Loan Management Endpoints and Services

Added POST, DELETE, and GET endpoints for loan management.

  • Added POST endpoint to create a loan.
  • Added DELETE endpoint to delete a loan by loanId.
  • Added GET endpoint to retrieve information about a specific loan by loanId.
  • Added GET endpoint to retrieve all loans.
  • Added POST endpoint to return a loan.
  • Added GET endpoint to retrieve all returned loans.

This commit introduces the following changes for loan management:

  • Created ControllerAdvice for exception handling.
  • Modified InventoryController, LoanController for loan management logic.
  • Created ReturnLoanController for managing returned loans.
  • Modified InventoryItemService, LoanService, and created ReturnLoanService for business logic.
  • Modified EndpointConstant for new endpoint constants.
  • Created IsEmptyException for handling empty data.

- Now the quantizable and the general items exist in the same table.
- The routes have been changed as well, now the request are made only asking
  for the for the item instead of general and quantizable item.
- One of the inventory endpoints is now a tableInventory endpoint, it is now
  a more accurate name
Added POST, DELETE, and GET endpoints for loan management.

Added POST endpoint to create a loan.
Added DELETE endpoint to delete a loan by loanId.
Added GET endpoint to retrieve information about a specific loan by loanId.
Added GET endpoint to retrieve all loans.
Added POST endpoint to return a loan.
Added GET endpoint to retrieve all returned loans.

This commit introduces the following changes for loan management:
- Created ControllerAdvice for exception handling.
- Modified InventoryController, LoanController for loan management logic.
- Created ReturnLoanController for managing returned loans.
- Modified InventoryItemService, LoanService, and created ReturnLoanService for business logic.
- Modified EndpointConstant for new endpoint constants.
- Created IsEmptyException for handling empty data.
Implemented mapper to display all records within loans, sending                                                         them in a format suitable for consumption in frontend tables.                                                           Additionally, added state to the entity, DTO, and other
loan-related logic to handle its status effectively.
Copy link

@superpollo2 superpollo2 merged commit d29e55f into master Apr 24, 2024
2 checks passed
@superpollo2 superpollo2 deleted the feat/loan branch April 26, 2024 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant