Refactor Docker configuration and API endpoints

- Merged production and development Docker configurations
- Updated Dockerfile to use multi-stage build
- Removed separate Dockerfile.prod
- Modified docker-compose.yml for production settings
- Added new API endpoints for user filtering by ID card
- Updated serializers and views for Atoll and Island management
- Enhanced user and atoll-related filters and views
This commit is contained in:
2025-01-24 11:43:18 +05:00
parent f6f77bb0e5
commit c1fc07e3e2
9 changed files with 118 additions and 137 deletions

View File

@ -11,10 +11,12 @@ from .views import (
UserDetailAPIView,
healthcheck,
test_email,
ListCreateAtollView,
ListAtollView,
CreateAtollView,
RetrieveUpdateDestroyAtollView,
ListCreateIslandView,
RetrieveUpdateDestroyIslandView,
ListUserByIDCardView,
)
@ -28,9 +30,11 @@ urlpatterns = [
# path("auth/", CustomAuthToken.as_view()),
path("users/", ListUserView.as_view(), name="users"),
path("users/<int:pk>/", UserDetailAPIView.as_view(), name="user-detail"),
path("users/idcard/", ListUserByIDCardView.as_view(), name="users-idcard"),
path("healthcheck/", healthcheck, name="healthcheck"),
path("test/", test_email, name="testemail"),
path("atolls/", ListCreateAtollView.as_view(), name="atolls"),
path("atolls/", ListAtollView.as_view(), name="atolls"),
path("atolls/new/", CreateAtollView.as_view(), name="atoll-new"),
path(
"atolls/<int:pk>/",
RetrieveUpdateDestroyAtollView.as_view(),