-
Notifications
You must be signed in to change notification settings - Fork 0
feat(#6): add GET /foo endpoint returning {"result": "bar"} #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,11 @@ def delete_item(item_id): | |
| return "", 204 | ||
|
|
||
|
|
||
| @app.route("/foo") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] design-smell The /foo endpoint is architecturally distinct from the todo-list domain but explicitly authorized by issue #6. Consider adding a code comment noting its purpose if it is a test/demo endpoint. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [info] scope-verification Implementation matches issue #6 scope exactly: GET /foo returning {"result": "bar"} with tests and README documentation. |
||
| def foo(): | ||
| return jsonify(result="bar") | ||
|
|
||
|
|
||
| _items_store = [] | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[low] pattern-inconsistency
Route decorator omits explicit methods=["GET"]. The codebase is inconsistent: /health also omits it while /items specifies it. Consider aligning for consistency.