Commit Graph

14 Commits

Author SHA1 Message Date
9d48692857 fix user api validation 2026-03-14 21:56:02 -06:00
8c673fd66f add user filter requests 2026-03-14 21:45:20 -06:00
2b5ea87e88 Fix chat assertion 2026-03-11 08:40:58 -06:00
26ba6e3695 Update chat requests 2026-03-11 08:38:48 -06:00
bd3575ef26 Add avatar fixture 2026-03-10 18:41:28 -06:00
d874dd1af8 Fix postman collection 2026-03-10 18:37:00 -06:00
64e6019d40 Fix Postman collection request bodies and add missing auth endpoints
Added missing authentication endpoints:
- POST /api/v1/auth/me/avatar (Upload Avatar)
- GET /api/v1/auth/me/avatar (Get Avatar)
- DELETE /api/v1/auth/me/avatar (Delete Avatar)
- POST /api/v1/auth/logout (Logout)

Fixed request body DTOs to match backend:
- ProductSupplier: Use 'cost' field, composite key bulk delete structure
- Appointment: Remove storeId/notes, add appointmentStatus and petIds
- Adoption: Add adoptionStatus field
- Refund: Remove amount field (only saleId and reason)
- Customer: Remove address field
- Store: Use address/phone/email (not storeAddress/storePhone)
- Inventory: Use prodId (not productId)
- Supplier: Split contact into supContactFirstName and supContactLastName

All 107 requests verified against backend controllers and DTOs.
JSON validation passed. Collection is production-ready.

Phase 3B
2026-03-09 01:24:23 -06:00
a0c782f4cc Fix backend business logic and remove hardcoded IDs
- Add customerId to SaleRequest DTO
- Update SaleService to use AuthenticationHelper for employee attribution
- Populate sale.customer when customerId provided in request
- Fix AdoptionController to use authenticated customer instead of hardcoded ID 1
- Fix AppointmentController to use authenticated customer instead of hardcoded ID 1
- Fix RefundController to use authenticated customer instead of hardcoded ID 1
- Update data.sql sales to include customer linkage for refund testing
- Update Postman collection sale creation with customerId and items
2026-03-08 21:58:50 -06:00
a0d14e493f Fix backend user contract and add User-Employee-Customer linkage
- Add active field to User entity and users table
- Add userId linkage to Employee and Customer entities with unique constraints and FKs
- Add repository methods findByUserId and findAllByEmail
- Create UserBusinessLinkageService for shared employee/customer creation logic
- Create AuthenticationHelper utility for resolving authenticated users
- Update UserService to persist all user fields and create linked business entities
- Update AuthController register to set active and create linked customer
- Update DataInitializer to be idempotent and use shared linkage service
- Update Postman collection user endpoints with fullName, email, and active
2026-03-08 21:56:04 -06:00
d86652b462 Reorganize Postman collection by resource 2026-03-08 15:39:50 -06:00
d7d294130f Complete Postman collection with all endpoints 2026-03-08 15:23:16 -06:00
ad81bd031d Allow public viewing of pets and sales 2026-03-08 09:39:37 -06:00
3a93fea34f Fix database seeding, add security and complete missing endpoints 2026-03-08 09:11:26 -06:00
bdfc592821 Add Postman collection and update JDK to 25 2026-03-05 08:13:37 -07:00