Requirements:
The application should have following requirements:
-
A News has caption, category, sub-category, content information
-
The system supported to create News, update the content and browse the News records
-
There are some validation rules when creating a News, eg. the length of the caption should not be longer than 80 characters
-
Additional features supported which not mentioned above will be treated as bonus
How to build the application?
On Windows
gradlew.bat clean build
On *nix
./gradlew clean build
How to run the application?
On Windows
gradlew.bat bootRun
On *nix
./gradlew bootRun
Access and play around the APIs
Improvements
-
add update/delete feature to category
-
add validation to category related operation
-
add back unit tests for category (news features are created by ATDD and TDD but category features just ATDD for saving time)
-
pagination
-
security
-
audit history