Skip to content

Commit cf5a5ba

Browse files
committed
feat(endpoint-userfilter): update readme
1 parent 21a194d commit cf5a5ba

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ dummy.api.base-url=https://dummyjson.com/
8888
| `POST` | `/random-users` | Create a new user ||
8989
| `PUT` | `/random-users/{id}` | Update user ||
9090
| `DELETE` | `/random-users/{id}` | Delete user ||
91+
| `GET` | `/random-users/filter` | Filter users by criteria ||
9192

9293
### Example Request
9394

@@ -115,6 +116,12 @@ curl -X POST "http://localhost:8080/random-users" \
115116
"nat": "FR"
116117
}'
117118

119+
# Filter users by gender and nationality
120+
curl -X GET "http://localhost:8080/random-users/filter?gender=MALE&nat=FR"
121+
122+
# Filter users by firstname (partial match, case-insensitive)
123+
curl -X GET "http://localhost:8080/random-users/filter?firstname=john"
124+
118125
# Update user
119126
curl -X PUT "http://localhost:8080/random-users/1" \
120127
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)