← All projects
JavaScript / backend testing

User Records REST API

An OSU CS 290 coursework project using Express and Mongoose to manage user records. Local checks verify response codes, JSON data, updates, and missing records.

Project

OSU CS 290 coursework

Tools

JavaScript · Node.js · Express · MongoDB

Current scope

Local API · source not published

Request flow
  1. HTTP request JSON input
  2. Express Routes and responses
  3. MongoDB Mongoose model

Local checks cover create, read, update, delete, and missing records.

The problem

A small records API still needs predictable behavior. A missing record should return a clear response, a partial update should preserve fields that were not changed, and a delete should have the expected result.

How it works

Express routes handle JSON requests and query filters. A separate Mongoose model provides create, find, update, and delete operations against MongoDB. The routes return JSON responses and distinguish successful requests from records that are not found.

What I checked

The saved local verification report records 29 supplied HTTP requests passing. It also records checks for an omitted optional phone number, partial and full updates, a delete with no matching records, the expected collection, and cleanup. This is a local result, not a claim of production deployment.

Status and next steps

The coursework implementation and verification files are retained locally. The next improvements would be explicit input validation, malformed ID handling, and broader failure tests. Course source and supplied request material are not published here.

Next case study

Baymax Assistant ↗
All work ↑