feat: added PUT operation to the API #23
Closed
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 a variety of changes to improve the functionality and testing of the
devopsknowledgeshareapi
application. The most significant changes include the addition of new functional tests, the introduction of a newAuthorController
class, updates to thePost
andPostController
classes, and the addition of new methods to thePostRepository
interface.Functional Testing:
src/functionalTest/java/com/liatrio/dojo/devopsknowledgeshareapi/functional/ApplicationInfoTest.java
: Added a new functional test to verify the correct API version information on the /info page for unauthenticated users.src/functionalTest/java/com/liatrio/dojo/devopsknowledgeshareapi/functional/TestMethodOrder.java
: Introduced a new annotation to order the execution of test methods.API Enhancements:
src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorController.java
: Created a newAuthorController
class to handle requests related to authors.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/Post.java
: Added adateUpdated
field and corresponding getter and setter methods.src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostController.java
: Enhanced thePostController
class with new methods to update a post and to get posts by title, first name, or link. [1] [2]src/main/java/com/liatrio/dojo/devopsknowledgeshareapi/PostRepository.java
: Added new methods to thePostRepository
interface to find posts by title, first name, or link.Unit Testing:
src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/AuthorControllerTest.java
: Added new unit tests for theAuthorController
class.src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/PostTest.java
: Extended the unit tests for thePost
class to cover the newdateUpdated
field and thevalidatePostLink
method. [1] [2]Miscellaneous:
src/test/java/com/liatrio/dojo/devopsknowledgeshareapi/DateFormat.java
: Added an emptyDateFormat
class, presumably for future use.feat: added GET Operation for precise searching for title, name and linkfeat: added tests for new controller operation that pass
feat: added TDD and BDD test for HealthCheck