Spring Boot is a mature, open-source, feature-rich framework.
Generate this initial project with start.spring.io
After follow: https://spring.io/guides/gs/rest-service/#scratch
https://github.com/spring-guides/gs-rest-service/tree/master/complete
Let's make this more exciting! Implement one of the algorithms below!
https://en.wikipedia.org/wiki/Caesar_cipher
https://en.wikipedia.org/wiki/Substitution_cipher
https://en.wikipedia.org/wiki/Classical_cipher
http://localhost:8080/greeting http://localhost:8080/greeting?name=Kate http://localhost:8080/cesar?offset=3&text=this%20is%20a%20test
mvn package
java -jar target/crypto-0.0.1-SNAPSHOT.jar
- encode
curl -i \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
-X POST --data '{"text": "this is a test", "offset": 3}' "http://localhost:8080/cesar/encode"
- decode
curl -i \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
-X POST --data '{"text": "wklv lv d whvw", "offset": 3}' "http://localhost:8080/cesar/decode"