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 Post class to include dateUpdated field and corresponding me… #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baserrato
Copy link

…thods

This pull request introduces several new features and tests to the devopsknowledgeshareapi project. The most important changes include adding new controllers for handling author and info requests, updating the Post class to include a dateUpdated field, and adding corresponding tests for these new features.

New Features:

  • InfoController: Added a new controller to handle /info endpoint which returns a welcome message. (src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/InfoController.java)
  • AuthorController: Added a new controller to handle /authors endpoint which returns a list of authors. (src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorController.java)

Updates to Existing Classes:

  • Post Class: Added a new field dateUpdated with corresponding getter and setter methods. (src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/Post.java)

New Tests:

  • InfoControllerTest: Added functional tests for the InfoController to ensure the /info endpoint works correctly. (src/functionalTest/java/com/liatrio/dojo/devopsknowledgeshareapi/functional/InfoControllerTest.java)
  • AuthorControllerTest: Added tests for the AuthorController to verify the /authors endpoint. (src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorControllerTest.java)
  • PostTest: Added tests for the new dateUpdated field in the Post class. (src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/PostTest.java)

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