feat: add dateUpdated field and search endpoints for posts #34
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 introduces several new features and improvements to the
devopsknowledgeshareapi
project. The most important changes include adding new controllers for handling author and info requests, enhancing thePost
andPostController
classes with additional methods, and updating the test classes to cover the new functionalities.New Controllers:
src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorController.java
: Added a newAuthorController
class with agetAuthors
method to return a list of authors.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/InfoController.java
: Added a newInfoController
class with agetInfo
method to return API information.Enhancements to
Post
andPostController
:src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/Post.java
: Added adateUpdated
field with corresponding getter and setter methods.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostController.java
: Added new endpoints for searching posts by title, first name, and link, as well as an endpoint for updating posts. [1] [2]src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostRepository.java
: Added methods to find posts by title, first name, and link.Test Class Updates:
src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorControllerTest.java
: Added a new test class forAuthorController
to verify thegetAuthors
endpoint.src/functionalTest/java/com/liatrio/dojo/devopsknowledgeshareapi/functional/InfoControllerTest.java
: Added a new functional test class forInfoController
to verify thegetInfo
endpoint.src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/PostTest.java
: Added tests for the newdateUpdated
field in thePost
class.