-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature/Delete an existing experience #38
base: main
Are you sure you want to change the base?
Feature/Delete an existing experience #38
Conversation
app.py
Outdated
return jsonify({"message": "Resource doesn't exist"}), 404 | ||
else: | ||
deleted_exp = data['experience'].pop(exp_id) | ||
# return jsonify({"message": "Experience Successfully Deleted", "deleted_experience": deleted_exp}), 200 |
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.
Let's remove this comment if it's not needed
app.py
Outdated
# return jsonify({"message": "Experience Successfully Deleted", "deleted_experience": deleted_exp}), 200 | ||
return jsonify({"message": "Experience Successfully Deleted"}), 200 | ||
except Exception as e: | ||
print(f"Error :{e} ") |
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.
Let' not include prints in production code
app.py
Outdated
return jsonify({"error": "An error occured"}), 500 | ||
|
||
|
||
@app.route('/resume/education', methods=['GET', 'POST']) |
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.
Is this required here?
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.
Please are you referring to: "@app.route('/resume/education', methods=['GET', 'POST'])"
or this: "return jsonify({"error": "An error occured"}), 500"
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.
"@app.route('/resume/education', methods=['GET', 'POST'])" mainly. Is this required here?
@@ -34,6 +34,34 @@ def test_experience(): | |||
assert response.json[item_id] == example_experience | |||
|
|||
|
|||
|
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.
Why is this all commented out? You can remove this test since the post endpoint is not there
@Pradyuman7