# abito28/devsecops-project architecture

> Architecture diagram of the GitHub repository abito28/devsecops-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abito28/devsecops-project
- Repository: https://github.com/abito28/devsecops-project

## Overview

This repository contains a small FastAPI memo service. An API client can check health, create a memo, list stored memos, or delete one; creation validates text length, and deletion returns a not-found error for unknown IDs. All memo state is held in a process-local dictionary and is lost when the server restarts. The README describes the project only as a DevSecOps learning project, so it does not establish additional runtime capabilities; the map reflects the sampled application source.

Main entry points: [`app/main.py`](https://github.com/abito28/devsecops-project/blob/main/app/main.py) (Create memo)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_client(("API client"))
node_health["Health endpoint<br/>[main.py]"]
node_create["Create memo<br/>[main.py]"]
node_validation["Memo validation<br/>[main.py]"]
node_list["List memos<br/>[main.py]"]
node_delete["Delete memo<br/>[main.py]"]
node_store["In-memory memos<br/>[main.py]"]

node_client -->|"requests health"| node_health
node_client -->|"creates memo"| node_create
node_client -->|"lists memos"| node_list
node_client -->|"deletes memo"| node_delete
node_create -->|"validates input"| node_validation
node_create -->|"writes memo"| node_store
node_list -->|"reads memos"| node_store
node_delete -->|"checks and deletes"| node_store

click node_health "https://github.com/abito28/devsecops-project/blob/main/app/main.py"
click node_create "https://github.com/abito28/devsecops-project/blob/main/app/main.py"
click node_validation "https://github.com/abito28/devsecops-project/blob/main/app/main.py"
click node_list "https://github.com/abito28/devsecops-project/blob/main/app/main.py"
click node_delete "https://github.com/abito28/devsecops-project/blob/main/app/main.py"
click node_store "https://github.com/abito28/devsecops-project/blob/main/app/main.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_client toneBlue
class node_health,node_create,node_validation,node_list,node_delete,node_store toneTeal
```

## Components

### Other components

- **API client**
- [Health endpoint](https://github.com/abito28/devsecops-project/blob/main/app/main.py): `app/main.py`
- [Create memo](https://github.com/abito28/devsecops-project/blob/main/app/main.py): `app/main.py`
- [Memo validation](https://github.com/abito28/devsecops-project/blob/main/app/main.py): `app/main.py`
- [List memos](https://github.com/abito28/devsecops-project/blob/main/app/main.py): `app/main.py`
- [Delete memo](https://github.com/abito28/devsecops-project/blob/main/app/main.py): `app/main.py`
- [In-memory memos](https://github.com/abito28/devsecops-project/blob/main/app/main.py): `app/main.py`

## Connections

- API client → Health endpoint: requests health (evidence: `app/main.py`)
- API client → Create memo: creates memo (evidence: `app/main.py`)
- API client → List memos: lists memos (evidence: `app/main.py`)
- API client → Delete memo: deletes memo (evidence: `app/main.py`)
- Create memo → Memo validation: validates input (evidence: `app/main.py`)
- Create memo → In-memory memos: writes memo (evidence: `app/main.py`)
- List memos → In-memory memos: reads memos (evidence: `app/main.py`)
- Delete memo → In-memory memos: checks and deletes (evidence: `app/main.py`)
