The project is made on spring boot. The project summarize the new features present in Java 8. It contain list of harcoded topics list. You can call the apis's with POSTMAN to add,delete,update Topic list In addition, it uses
- Java 8 NIO methods
- String operations
- Stream operations
- IntStream functions
- Functional interface
- Lambda functions
- Optional datatype
- Foreach loops
- Default and Static methods in interface
- Java 8 LocalDateTime API
- Pattern
- Download or clone the project with link (https://github.com/RehmanMuradAli/springboot-java8/)
Greetings
GET /
Get all Topics in List
GET /topic
Get Topic of given ID
GET /topic/{id}
Add Topic in List
POST /topic
Update Topic of given ID
PUT /topic/{id}
Delete Topic of given ID
DELETE /topic/{id}
Get all Topics whose ID's length is greater than minLength
GET /topic/minimum/length/{minLength}
Get all Topics sorted by ID
GET /topic/sort
String Operations on Topic List
GET /topic/string/operation
File Operations on Topic List
GET /topic/file/operation
Java 8 Date Time example
GET /datetime
- Java sdk
- POSTMAN
1) Download or clone
2) Import the project
3) Run on location machine
4) Open Postman, to call API's ( localhost:8080 )
Spring:
Java 8:
http://www.baeldung.com/java-8-functional-interfaces
http://winterbe.com/posts/2015/05/22/java8-concurrency-tutorial-atomic-concurrent-map-examples/
https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html
http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples/
http://www.oracle.com/technetwork/articles/java/ma14-java-se-8-streams-2177646.html
https://docs.oracle.com/javase/tutorial/essential/io/pathOps.html
https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html
http://www.baeldung.com/foreach-java
http://winterbe.com/posts/2015/03/25/java8-examples-string-number-math-files/
http://www.baeldung.com/java-8-comparator-comparing
http://www.baeldung.com/java-8-sort-lambda
https://dzone.com/articles/java-8-friday-goodies-new-new
- Maven - Dependency Management
- Rehman Murad Ali