Projects

Flask APIs — REST & Validation in Python

Three small Flask APIs built by hand in my M.S. Informatics coursework — a validated sum API with 8 passing tests, a RESTful book API with a live HTML table, and a Tkinter purchase form posting JSON to Flask. Every line typed and debugged by hand, every endpoint verified live.

ROLE
Builder
TOOLS
Python, Flask, pytest, Tkinter, GitHub, VS Code
TIMELINE
Active (Oct–Nov 2026)
FOCUS
—
Light-blue code brackets on a navy grid.

What they are

Three APIs, one idea: a small web program should take input, check it first, and say exactly what is wrong when the input is bad. Each one was built by hand in VS Code, tested with pytest or live requests, and published to a public GitHub repo.

The three APIs

1. Sum API — validation first.
GET /hello returns a greeting. POST /sum takes a list of numbers and returns their sum. Before it computes anything, it validates in order: the request is a JSON object, the numbers field is present, it is a list, and every item is a number — each failure returns a JSON 400 naming the problem. 8 pytest tests pass in 0.74s.
Repo: https://github.com/Makariusepps1/flask_api_assignment

2. Book API — REST with a live table.
A RESTful API for a small book list, with all endpoints renamed from /books to /goodbooks. Four books, including Diary of a Wimpy Kid (Jeff Kinney, 5/5). A /goodbooks/html page fetches the JSON with JavaScript and renders the table with loading and error states, highlighting ratings of 4 and up.
Repo: https://github.com/Makariusepps1/REST-CRUD-API-Dynamic-Formatting

3. Purchase form — GUI to API.
A Tkinter purchase form (product ID, description, customer name, email, price, online/in-store) that validates input locally and POSTs it as JSON to a Flask API. The API checks the price server-side (must be $1,000 or less). Two test purchases posted successfully — P-1001, Wireless Headphones, $89.99, online.
Repo: https://github.com/Makariusepps1/REST-GUI-API

What I took from them

The pattern that carries into bigger work: validate input before you trust it, test the failure cases as well as the happy path, and verify the running program — not just the code — before calling it done. These three are the evidence I point to when someone asks what my Python actually looks like.