feat: Add dateUpdated field to Post model and update PostController #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes to the
devopsknowledgeshareapi
package, introducing new features and enhancing existing ones. The changes mainly revolve around the addition of anAuthorController
and updates to thePost
andPostController
classes. Furthermore, thePostRepository
interface has been extended with new methods, and tests have been added or updated in theAuthorControllerTest
andPostTest
classes.New Features:
src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorController.java
: A newAuthorController
class has been added which includes agetAuthors
method that returns a list of authors.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostController.java
: AputPost
method has been added to thePostController
class, allowing for updates to existing posts.Updates to Existing Features:
src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/Post.java
: ThePost
class has been updated with a newdateUpdated
field, along with its corresponding setter and getter methods.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostRepository.java
: ThePostRepository
interface has been extended with new methods to find posts by title, first name, and link.Test Enhancements:
src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorControllerTest.java
: A new test classAuthorControllerTest
has been added to test thegetAuthors
method in theAuthorController
class.src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/PostTest.java
: ThePostTest
class has been updated with a new test methodsetDateUpdatedTest
to test thesetDateUpdated
method in thePost
class.