Mortgage Calculator API
Test endpoints for UserInfo and UserInput data (mock storage)
from fastapi import FastAPI
app = FastAPI()
@app.post("/api/user-info")
def create_user_info(data: UserInfo):
return validate_and_save(data)
@app.post("/api/user-input")
def create_user_input(data: UserInput):
return validate_and_save(data)
Interactive API Docs
Test UserInfo and UserInput POST/GET endpoints with Swagger UI.
Open Swagger UI →JSON Data Flow
Diagram of how JSON moves between endpoints, plus notes on where the flow could improve.
View Data Flow →User Info (Debt/Income/Email)
Called BEFORE user-input to save debt-to-income and email data.
View UserInfo Docs →User Input (Mortgage Data)
Called AFTER user-info to save mortgage calculation parameters.
View UserInput Docs →