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]: creation and Deletion of blog end point by superadmin #87

Closed

Conversation

Iretoms
Copy link
Contributor

@Iretoms Iretoms commented Jul 21, 2024

Description

This PR adds the ability for superadmins to create and delete blog posts, along with associated tags and images.

Changes

  • Added new fields for tags and images to the Blog model.
  • Implemented the create and delete blog functionalities in the service and controller layers.
  • Ensured only superadmins can perform these actions.
  • Added end-to-end tests for creating and deleting blog posts.

Tests

  • Tested the creation of blog posts with valid and invalid request bodies.
  • Tested the deletion of blog posts under various scenarios (e.g., successful deletion, no blog post found, insufficient permissions, internal server error, invalid ID parameters, invalid method).

Related Issue

This PR addresses the issue #72 and issue #6

@ihechiwilliams
Copy link

@Iretoms kindly fix the actions, so i can review

@Iretoms
Copy link
Contributor Author

Iretoms commented Jul 22, 2024

@ihechiwilliams Sorry please what actions, when it failed initially today I already looked into it and fixed it

@Iretoms Iretoms closed this Jul 24, 2024
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