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

[FEAT] Blog Post Deletion Endpoint - Backend #6 #98

Closed
wants to merge 6 commits into from

Conversation

kunmifab
Copy link
Contributor

​An endpoint to permit only super admin to softdelete a blog post

Description

​Created an API endpoint to handle the deletion of a blog. This endpoint validates the blog ID and update the specified blog status column to 0 to indicate it has been soft deleted on the database upon successful validation.

Related Issue (Link to Github issue)

#6

Motivation and Context

How Has This Been Tested?

​yes this has been tested using feature test

Screenshots (if appropriate - Postman, etc):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Take out changes from this page

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the changes. The test is failing because of someone else's Unit test and i have contacted him

@kunmifab kunmifab closed this Jul 24, 2024
@kunmifab
Copy link
Contributor Author

i made another PR with the required naming convention and fixed the errors

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