mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 20:51:13 -05:00
Implement entity submission services for ThrillWiki
- Added BaseEntitySubmissionService as an abstract base for entity submissions. - Created specific submission services for entities: Park, Ride, Company, RideModel. - Implemented create, update, and delete functionalities with moderation workflow. - Enhanced logging and validation for required fields. - Addressed foreign key handling and special field processing for each entity type. - Noted existing issues with JSONField usage in Company submissions.
This commit is contained in:
@@ -17,6 +17,7 @@ from .endpoints.search import router as search_router
|
||||
from .endpoints.reviews import router as reviews_router
|
||||
from .endpoints.ride_credits import router as ride_credits_router
|
||||
from .endpoints.top_lists import router as top_lists_router
|
||||
from .endpoints.history import router as history_router
|
||||
|
||||
|
||||
# Create the main API instance
|
||||
@@ -111,6 +112,9 @@ api.add_router("/reviews", reviews_router)
|
||||
api.add_router("/ride-credits", ride_credits_router)
|
||||
api.add_router("/top-lists", top_lists_router)
|
||||
|
||||
# Add history router
|
||||
api.add_router("/history", history_router)
|
||||
|
||||
|
||||
# Health check endpoint
|
||||
@api.get("/health", tags=["System"], summary="Health check")
|
||||
|
||||
Reference in New Issue
Block a user