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.
Fixes #
This pull request introduces several changes to the
devopsknowledgeshareapi
package, mainly focusing on the addition of new features and tests. The most significant changes include the creation of a newAuthController
class, the addition of adateUpdated
field in thePost
class, and the introduction of new tests inAuthControllerTest
andPostTest
.New features:
src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthController.java
: A newAuthController
class was created, including agetAuthors
method that returns aResponseEntity
object with a string message.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/Post.java
: AdateUpdated
field was added to thePost
class, along with correspondingsetDateUpdated
andgetDateUpdated
methods.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostController.java
: AupdatePost
method was added to thePostController
class, allowing updates to existing posts.Test additions:
src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthControllerTest.java
: A newAuthControllerTest
class was created, including atestGetAuthors
method to test thegetAuthors
method inAuthController
.src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/PostTest.java
: Two new tests were added to thePostTest
class to test thesetDateUpdated
andgetDateUpdated
methods inPost
.Minor changes:
src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostController.java
: TheResponseEntity
import was added.src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/PostTest.java
: TheDate
,DateFormat
, andSimpleDateFormat
imports were added.