Skip to content

API Reference

Michael Kage edited this page Sep 8, 2026 · 1 revision

Documentation for the primary backend endpoints exposed by the server.

🔐 Authentication

Register a User

  • Endpoint: POST /api/auth/register
  • Payload: { "username": "student1", "email": "student@university.edu", "password": "securepassword123" } Login User
  • Endpoint: POST /api/auth/login
  • ** Response:** { "token": "eyJhbGciOiJIUzI1NiIsIn..." }

🏫 Campus Services

Fetch Announcements

  • Endpoint: GET /api/announcements
  • Response: Array of student notification payloads.

Clone this wiki locally