Skip to content

[012] Solution HN565#83

Open
Ilia Alenabi (iliall) wants to merge 1 commit into
mainfrom
task-012/sol-HN565
Open

[012] Solution HN565#83
Ilia Alenabi (iliall) wants to merge 1 commit into
mainfrom
task-012/sol-HN565

Conversation

@iliall

Copy link
Copy Markdown
Collaborator

Agent-Generated Summary

Built a Flask-based HTTP API in app.py implementing the Apex Logistics 3PL MVP. Endpoints include: GET /api/insights (returns 3 blog posts sorted newest first with a 50-char excerpt that extends to the end of a mid-word and appends an ellipsis), GET /api/insights/ (full post title and body), GET /api/roi/defaults, POST /api/roi/step1|step2|step3 (per-step validation with the required rules and defaults), POST /api/roi/calculate (implements the SE-only, NE-only, and Hybrid scenario formulas including risk buffer and FTZ savings, returns totals, cost per pallet and ROI vs scenario A), POST /api/contact (validates name, email, optional 10-digit US phone, inquiry type enum, and min 10-char message; returns the specified success message), POST /api/quote (validates all required fields, requires phone only when contact method is Phone, stores quote in memory), and GET /api/admin/quotes (requires password apex-logistics-3421 via header or query param, returns quotes newest to oldest). Blog metadata is parsed from assets/blogs/ markdown files. Added a minimal requirements.txt with flask and a README describing the endpoints.


Completion time: ~167 seconds


This pull request is solution HN565 for issue #12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant