Open
Conversation
- Add PUT endpoint support for pet updates in PetRegisterService - Add DELETE endpoint for pet removal with confirmation dialog - Implement pet edit mode in PetRegisterView with proper navigation - Add toBrazilianDateFormat() method to convert API dates to Brazilian format - Update URLManager with computed property for pet update endpoints - Refactor PetRegisterViewModel to handle both create and edit modes - Fix navigation flow to properly pass pet data between views - Add delete confirmation alert with primary/secondary button support - Improve date formatting consistency between API and UI display - Extract common form data creation logic to reduce code duplication
- Add PetUpdateRequest struct as Codable model for JSON requests - Create createJSONBody method to convert PetModel to PetUpdateRequest - Update pet update method to use NetworkManager.jsonRequest instead of multipartRequest - Maintain existing createFormData method for register operation compatibility - Adjust on PetRegisterModel static values
- Add PetDataCache for local storage of dog/cat breeds and sizes - Add new API endpoints for breeds in URLManager (breedsByCat, breedsByDog) - Add new API endpoints for sizes in URLManager (sizesByCat, sizesByDog) - Refactor PetRegisterService with improved error handling and breed fetching - Refactor PetRegisterViewModel with better organization and MARK comments - Update PetRegisterView to remove sample image loading task - Update project configuration to include new PetDataCache file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🐾 Integração de API para edição de pet cadastrado
📌 Descrição
Integração dos serviços de edição dos pets já cadastrados
✨ Alterações Principais
PetRegisterViewModelPetRegisterAlertpara novo caso de edição de petPetRegisterViewModelPetRegisterViewcom pet cadastradoURLManagerPetServicePetDataCache: sistema de cache para raças e tamanhos de petsPetRegisterServicepara edição de pet, busca de raças e tamanhosPetRegisterViewModel✨ Melhorias e refatorações
Extension+StringNavigationRouterPetRegisterPetListView,PetProfileView,CustomNavigationBar📊 Como Testar
PetListViewonde a listagem é exibidaPetProfileView✅ Critérios de Aceite