Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Mergington High School Activities API

A super simple FastAPI application that allows students to view and sign up for extracurricular activities.

Features

  • View all available extracurricular activities
  • Sign up for activities

Getting Started

  1. Install the dependencies:

    pip install fastapi uvicorn
    
  2. Run the application:

    python app.py
    
  3. Open your browser and go to:

API Endpoints

Method Endpoint Description
GET /activities Get all activities with their details and current participant count
POST /activities/{activity_name}/[email protected] Sign up for an activity

Data Model

The application uses a simple data model with meaningful identifiers:

  1. Activities - Uses activity name as identifier:

    • Description
    • Schedule
    • Maximum number of participants allowed
    • List of student emails who are signed up
  2. Students - Uses email as identifier:

    • Name
    • Grade level

All data is stored in memory, which means data will be reset when the server restarts.