File tree Expand file tree Collapse file tree 10 files changed +106
-0
lines changed Expand file tree Collapse file tree 10 files changed +106
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ This repository includes various Java projects:
22
22
- ** [ ProxyDesignPattern] ( https://github.com/AhmetTK4/JavaProjects/tree/main/ProxyDesignPattern ) ** : Implements the Proxy design pattern in Java.
23
23
- ** [ kullanici-servis] ( https://github.com/AhmetTK4/JavaProjects/tree/main/kullanici-servis ) ** : A service application for user management.
24
24
25
+ ## Service Documentation
26
+ For details of each web service, see the [ docs] ( docs ) folder.
27
+
25
28
## Installation
26
29
27
30
1 . Clone this repository to your local machine:
Original file line number Diff line number Diff line change
1
+ # GameOfLife Service
2
+
3
+ Spring Boot implementation demonstrating Conway's Game of Life. Provides a REST endpoint to retrieve the next generation grid.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Description |
8
+ | -------| ------------------| --------------------------------------------|
9
+ | GET | ` /nextGeneration ` | Returns the next generation of cells based on provided ` rows ` and ` cols ` query parameters. |
10
+
Original file line number Diff line number Diff line change
1
+ # PlayWithCaches Service
2
+
3
+ Demonstrates caching mechanisms using Spring Boot.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Parameters | Description |
8
+ | -------| -------| ------------| ----------------------------|
9
+ | GET | ` /data ` | ` param ` (query) | Retrieves data, using caching for repeated calls. |
10
+
Original file line number Diff line number Diff line change
1
+ # PlayWithGenerics Service
2
+
3
+ Spring Boot project demonstrating usage of generics with REST APIs.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Description |
8
+ | -------| ------| -------------|
9
+ | POST | ` /api/generic/user ` | Add a new ` User ` to the list. |
10
+ | GET | ` /api/generic/users ` | Retrieve all stored ` User ` objects. |
11
+ | POST | ` /api/generic/string ` | Add a new ` String ` value to the list. |
12
+ | GET | ` /api/generic/strings ` | Retrieve all stored strings. |
13
+
Original file line number Diff line number Diff line change
1
+ # PlayWithJson Service
2
+
3
+ Demonstrates handling of JSON files via REST endpoints using Spring Boot.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Description |
8
+ | -------| ------| -------------|
9
+ | GET | ` /api/data ` | Retrieve all entries from ` data.json ` . |
10
+ | POST | ` /api/data ` | Add a new entry and persist to ` data.json ` . |
11
+ | DELETE | ` /api/data/{id} ` | Delete an entry by its ID. |
12
+
Original file line number Diff line number Diff line change
1
+ # PlayWithStreams Service
2
+
3
+ Spring Boot project illustrating stream operations over employee data.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Description |
8
+ | -------| ------| -------------|
9
+ | GET | ` /employees/high-salary ` | List employees with salary greater than 5000. |
10
+ | GET | ` /employees/names-uppercase ` | Return all employee names in uppercase. |
11
+ | GET | ` /employees/group-by-department ` | Group employees by department. |
12
+ | GET | ` /employees/total-salary ` | Calculate total salary of all employees. |
13
+
Original file line number Diff line number Diff line change
1
+ # PlayWithThreads Service
2
+
3
+ Showcases multithreading techniques with Spring Boot endpoints.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Description |
8
+ | -------| ------| -------------|
9
+ | GET | ` /start-tasks ` | Trigger asynchronous tasks. Accepts ` taskCount ` query param. |
10
+ | POST | ` /send-message ` | Send a message to Kafka topic. |
11
+ | POST | ` /scheduler/task1 ` | Trigger scheduled task 1. |
12
+ | POST | ` /scheduler/task2 ` | Trigger scheduled task 2. |
13
+ | POST | ` /scheduler/notify ` | Notify when tasks complete. |
14
+ | POST | ` /scheduler/send-email ` | Send an email with ` to ` , ` subject ` and ` text ` parameters. |
15
+ | GET | ` /tasks/counts ` | Retrieve scheduler task counts. |
16
+
Original file line number Diff line number Diff line change
1
+ # ProxyDesignPattern Service
2
+
3
+ Example project implementing the Proxy design pattern with REST endpoints.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Description |
8
+ | -------| ------| -------------|
9
+ | GET | ` /api/users/{id} ` | Get a user by id. |
10
+ | GET | ` /api/users/name/{name} ` | Find user by username. |
11
+ | PUT | ` /api/users/{id}/email ` | Update user email using ` newEmail ` parameter. |
12
+
Original file line number Diff line number Diff line change
1
+ # jacoco-demo
2
+
3
+ Spring Boot project demonstrating JaCoCo code coverage. This module does not expose REST endpoints.
4
+
Original file line number Diff line number Diff line change
1
+ # kullanici-servis
2
+
3
+ Quarkus based service for managing users.
4
+
5
+ ## Endpoints
6
+
7
+ | Method | Path | Description |
8
+ | -------| ------| -------------|
9
+ | GET | ` /kullanici ` | List all users. |
10
+ | POST | ` /kullanici ` | Create a new user. |
11
+ | PUT | ` /kullanici/{id} ` | Update an existing user. |
12
+ | DELETE | ` /kullanici/{id} ` | Delete a user. |
13
+
You can’t perform that action at this time.
0 commit comments