Skip to content
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 skill #39

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

FortunateOmonuwa
Copy link
Member

  • Implemented a new DELETE endpoint for deleting an existing skill that returns:
    • A 200 status code with a success message when a skill is successfully deleted.
    • 404 Not Found If the provided ID doesn't match any resource.
    • 500 Internal Server Error: If an exception occurs.

@Pradyuman7

Copy link
Collaborator

@Pradyuman7 Pradyuman7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯 we'll merge this after education so there is no duplicate stuff.

Btw, it is generally a better practice to keep PRs independent of each other if you're merging them to the same branch (i.e. main). This shows only the relevant code of the PR and makes it easier to review

app.py Outdated
@@ -58,27 +58,39 @@ def experience(index=None):
return jsonify({"error": "Experience not found"}), 404
return jsonify(data["experience"]), 200

if request.method == 'POST':
json_data = request.json
if request.method == "POST":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be updated in this PR

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.

2 participants