[012] Solution HN565#83
Open
Ilia Alenabi (iliall) wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
HN565for issue #12.