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

Refactor/blog service #392

Closed

Conversation

BerylCAtieno
Copy link

Description

Designed and implemented BlogService interface to define service methods.
Developed a concrete implementation of BlogService with business logic for handling blog operations.
Updated the Controller struct to properly inject the BlogService dependency.
Refactored controller methods to use the injected service instead of direct function calls.

Related Issue (Link to Github issue)

This Issue​

How Has This Been Tested?

I run tests on existing tests/test_blog tests in the codebase; they passed

Screenshots (if appropriate - Postman, etc):

Types of changes

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

Checklist:

  • [ x] My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • [x ] All new and existing tests passed.

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.

1 participant