Skip to content

API modules

Routers mounted in main.py. Most routes require x-api-key unless noted.

Content

Prefix Module Purpose
/api/posts posts/routes.py List/get/create/update posts
/api/news news/routes.py News articles (read)
/api/news-management news/news_management.py News CRUD (admin)
/api/series series/routes.py Series + chapters (read)
/api/series-management series/management_route.py Series/chapter admin

Users & settings

Prefix Module Purpose
/api/user-profiles user_profiles/routes.py Login, profiles, image upload
/api/app-settings app_settings/routes.py Key/value settings CRUD

USA News

Prefix Module Purpose
/api/usanews-posts usanews_posts/routes.py USA News read + write
/api/usanews-posts-management usanews_posts/management_routes.py Bulk/admin operations

Detailed GET contract: usanews/READ_API.md.

Public / infra

Path Auth Purpose
/hello none Smoke hello
/api/status none Health
/api/cache/status none Background cache job status
/docs, /redoc none OpenAPI UI

Middleware

  • VerifyAdminMiddleware — validates x-api-key on protected routes
  • CORS — localhost and *.skyneto.com

Background jobs

lifespan in main.py starts cache refresh jobs (services/cache_util.py) on startup and stops them on shutdown.