From 2a7d314835a13b41dbed85488d05d562c8697cfb Mon Sep 17 00:00:00 2001 From: royjoydeep348 Date: Fri, 19 Sep 2025 11:06:46 +0530 Subject: [PATCH 1/6] Update readme.md --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f9b71b5..65fe700 100644 --- a/readme.md +++ b/readme.md @@ -8,8 +8,9 @@ The main goal of the project is to show how to write a `@RestController` in Spri ## How does it work? + You can use the endpoints behind `http://localhost:8080/spanish-greetings`. If you append `/random` to a `GET` request you'll receive a random Spanish greeting (which are actually hard-coded). You can also `GET` them by `id` (only from 1 to 3). To create a new one, you need to perform a `POST` operation. Actually, much better if you just start the application and navigate to `http://localhost:8080/swagger-ui.html`. There you'll find a nice API documentation thanks to Swagger. Moreover, *you can play with it*. -![Swagger Documentation](images/swagger.png) \ No newline at end of file +![Swagger Documentation](images/swagger.png) From 9fd7bc188741e9b0e5f3f987386d9f5e2eeb7ca5 Mon Sep 17 00:00:00 2001 From: royjoydeep348 Date: Fri, 19 Sep 2025 11:08:34 +0530 Subject: [PATCH 2/6] Update readme.md --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index 65fe700..66700de 100644 --- a/readme.md +++ b/readme.md @@ -4,6 +4,9 @@ This project contains the sample code used in [The Practical Developer Blog](https://thepracticaldeveloper.com/2017/03/04/restcontroller-spring-boot-example-with-springfox-swagger/). It's a Spring Boot application with one plain Java object (`SpanishGreeting`) and a Spring Controller `SpanishGreetingController`. + + + The main goal of the project is to show how to write a `@RestController` in Spring Boot and include documentation with Swagger. ## How does it work? From e768c0ccd198788cb09a93950a73da1aa79f06ac Mon Sep 17 00:00:00 2001 From: royjoydeep348 Date: Fri, 19 Sep 2025 11:14:19 +0530 Subject: [PATCH 3/6] Update readme.md --- readme.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/readme.md b/readme.md index 66700de..c4bb520 100644 --- a/readme.md +++ b/readme.md @@ -7,6 +7,11 @@ This project contains the sample code used in [The Practical Developer Blog](htt + + + + + The main goal of the project is to show how to write a `@RestController` in Spring Boot and include documentation with Swagger. ## How does it work? From 94c6d2d47051bed55cb98f5bf14292836a2c00d6 Mon Sep 17 00:00:00 2001 From: royjoydeep348 Date: Sat, 20 Sep 2025 18:08:55 +0530 Subject: [PATCH 4/6] Update readme.md --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index c4bb520..2ff85a4 100644 --- a/readme.md +++ b/readme.md @@ -4,6 +4,8 @@ This project contains the sample code used in [The Practical Developer Blog](https://thepracticaldeveloper.com/2017/03/04/restcontroller-spring-boot-example-with-springfox-swagger/). It's a Spring Boot application with one plain Java object (`SpanishGreeting`) and a Spring Controller `SpanishGreetingController`. +Added for test cases. + From d9cc6090014c2b2a422bb3f5ae394dcc7fccbe0c Mon Sep 17 00:00:00 2001 From: royjoydeep348 Date: Sat, 20 Sep 2025 18:13:54 +0530 Subject: [PATCH 5/6] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2ff85a4..10115d8 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ This project contains the sample code used in [The Practical Developer Blog](https://thepracticaldeveloper.com/2017/03/04/restcontroller-spring-boot-example-with-springfox-swagger/). It's a Spring Boot application with one plain Java object (`SpanishGreeting`) and a Spring Controller `SpanishGreetingController`. -Added for test cases. + From ccbcb6fae8a5901b056fc01d38c544098d953e1b Mon Sep 17 00:00:00 2001 From: royjoydeep348 Date: Sat, 20 Sep 2025 18:21:13 +0530 Subject: [PATCH 6/6] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 10115d8..1e2db5e 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ This project contains the sample code used in [The Practical Developer Blog](https://thepracticaldeveloper.com/2017/03/04/restcontroller-spring-boot-example-with-springfox-swagger/). It's a Spring Boot application with one plain Java object (`SpanishGreeting`) and a Spring Controller `SpanishGreetingController`. - +test