@@ -83,7 +83,7 @@ dummy.api.base-url=https://dummyjson.com/
8383
8484| Method | Path | Description | Status |
8585| --------| --------------------------| -------------| --------|
86- | ` GET ` | ` /random-users?count=30 ` | Fetch and save users from external API | ✅ |
86+ | ` GET ` | ` /random-users?page=1&size=10&source=DUMMY ` | Fetch and save users from selected external API source | ✅ |
8787| ` GET ` | ` /random-users/{id} ` | Get user by ID | ✅ |
8888| ` POST ` | ` /random-users ` | Create a new user | ✅ |
8989| ` PUT ` | ` /random-users/{id} ` | Update user | ✅ |
@@ -93,7 +93,10 @@ dummy.api.base-url=https://dummyjson.com/
9393
9494``` bash
9595# Fetch 10 users from external API and store them
96- curl -X GET " http://localhost:8080/random-users?count=10"
96+ curl -X GET " http://localhost:8080/random-users?page=1&size=10&source=DUMMY"
97+
98+ # Fetch 10 users from randomuser.me and store them
99+ curl -X GET " http://localhost:8080/random-users?page=1&size=10&source=RANDOM_USER"
97100
98101# Get user by ID
99102curl -X GET " http://localhost:8080/random-users/1"
@@ -185,6 +188,8 @@ curl -X PUT "http://localhost:8080/random-users/1" \
185188
186189- ` DummyUserApi ` : Retrofit client contract for DummyJSON endpoints.
187190- ` DummyUserServiceImpl ` : adapter that calls ` DummyUserApi ` , maps DTOs, and returns ` PaginatedUsers ` .
191+ - ` RandomUserApi ` : Retrofit client contract for randomuser.me endpoints.
192+ - ` RandomUserServiceImpl ` : adapter that calls ` RandomUserApi ` , maps DTOs, and returns ` PaginatedUsers ` .
188193
189194### Project Structure
190195
0 commit comments