kjh2064
|
474a7cc72f
|
feat: migrate InquiryController to FastEndpoints Endpoints (Phase 3)
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m28s
IMPLEMENTATION:
- Create 7 FastEndpoints Endpoint classes for Inquiry API:
- SubmitEndpoint: POST /api/inquiry (public)
- GetPagedEndpoint: GET /api/inquiry (auth, paginated)
- GetByIdEndpoint: GET /api/inquiry/{id} (auth)
- UpdateStatusEndpoint: PUT /api/inquiry/{id}/status (auth)
- UpdateAdminMemoEndpoint: PUT /api/inquiry/{id}/memo (auth)
- UpdateEndpoint: PUT /api/inquiry/{id} (auth)
- ConvertToClientEndpoint: POST /api/inquiry/{id}/convert-to-client (auth)
- Create InquiryDtos.cs with shared response types:
- InquiryQuery (query parameters)
- InquiryPagedResponse (paginated response)
- UpdateStatusRequest, UpdateAdminMemoRequest, ConvertToClientRequest
- ConvertToClientResponse, MessageResponse
- Backup InquiryController.cs (no longer active)
VERIFICATION:
✅ dotnet build: 0 errors, 0 warnings
✅ dotnet test: 26/26 passed
✅ Local service publish successful
✅ FastEndpoints auto-discovery working
✅ All 21 endpoints verified (Auth 4 + Blog 10 + Inquiry 7)
MIGRATION PROGRESS:
✅ Phase 1: Auth (4 endpoints) - DEPLOYED
✅ Phase 2: Blog (10 endpoints) - DEPLOYED
✅ Phase 3: Inquiry (7 endpoints) - READY FOR DEPLOYMENT
Next: Deploy Phase 3, then continue with remaining 13 Controllers
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
2026-07-03 17:21:36 +09:00 |
|
kjh2064
|
675ef64975
|
feat: migrate AuthController to FastEndpoints Endpoints (Phase 1)
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m31s
IMPLEMENTATION:
- Create 4 FastEndpoints Endpoint classes:
- LoginEndpoint: POST /api/auth/login
- RefreshTokenEndpoint: POST /api/auth/refresh
- ChangePasswordEndpoint: POST /api/auth/change-password
- ResetPasswordEndpoint: POST /api/auth/reset-password
- Backup AuthController.cs (no longer active)
- Add FastEndpoints.Endpoint<TRequest, TResponse> pattern
- Implement proper DI with AuthService injection
- Use Policies("Bearer") for authorization
- Proper error handling with ThrowError()
ARCHITECTURE:
- Start of Phase 1: Core Auth APIs
- Endpoints follow FastEndpoints conventions
- DTOs: LoginRequest, RefreshTokenRequest, ChangePasswordRequest, ResetPasswordRequest, TokenPairResponse, MessageResponse
- AllowAnonymous for login/refresh/reset
- Bearer policy for change-password
VERIFICATION:
✅ dotnet build: 0 errors, 0 warnings
✅ dotnet test: 26/26 passed
✅ FastEndpoints auto-discovery working (no endpoint errors)
✅ JWT validation passes
Next Phase: BlogController and remaining APIs
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
2026-07-03 17:14:35 +09:00 |
|