# sushma52005/student-mark-service architecture

> Architecture diagram of the GitHub repository sushma52005/student-mark-service, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sushma52005/student-mark-service
- Repository: https://github.com/sushma52005/student-mark-service

## Overview

This is a small FastAPI student-mark service. Clients submit student records or request health, listing (optionally filtered by name), individual lookup, updates, and deletion. The API delegates record operations to a repository that keeps data in an in-memory dictionary; the Pydantic model defines and validates student fields. The source excerpts show these links, but do not show persistence beyond process memory or other integrations.

Main entry points: [`app.py`](https://github.com/sushma52005/student-mark-service/blob/main/app.py) (Student API), [`rep.py`](https://github.com/sushma52005/student-mark-service/blob/main/rep.py) (Student Repository), [`models.py`](https://github.com/sushma52005/student-mark-service/blob/main/models.py) (Student Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["HTTP API"]
  node_service_api["Student API<br/>[app.py]"]
end

subgraph group_domain["Student Domain"]
  node_student_model["Student Model<br/>[models.py]"]
end

subgraph group_storage["In-Memory Storage"]
  node_repository[("Student Repository<br/>[rep.py]")]
end

node_client(("HTTP Client"))

node_client -->|"sends requests"| node_service_api
node_service_api -->|"calls CRUD"| node_repository
node_service_api -->|"validates records"| node_student_model
node_repository -->|"stores records"| node_student_model
node_service_api -->|"returns responses"| node_client

click node_service_api "https://github.com/sushma52005/student-mark-service/blob/main/app.py"
click node_student_model "https://github.com/sushma52005/student-mark-service/blob/main/models.py"
click node_repository "https://github.com/sushma52005/student-mark-service/blob/main/rep.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_service_api,node_client toneBlue
class node_student_model toneAmber
class node_repository toneMint
```

## Components

### HTTP API

- [Student API](https://github.com/sushma52005/student-mark-service/blob/main/app.py): `app.py`

### Student Domain

- [Student Model](https://github.com/sushma52005/student-mark-service/blob/main/models.py): `models.py`

### In-Memory Storage

- [Student Repository](https://github.com/sushma52005/student-mark-service/blob/main/rep.py): `rep.py`

### Other components

- **HTTP Client**

## Connections

- HTTP Client → Student API: sends requests (evidence: `app.py`)
- Student API → Student Repository: calls CRUD (evidence: `app.py`)
- Student API → Student Model: validates records (evidence: `app.py`)
- Student Repository → Student Model: stores records (evidence: `rep.py`)
- Student API → HTTP Client: returns responses (evidence: `app.py`)
