File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
119126curl -X PUT " http://localhost:8080/random-users/1" \
120127 -H " Content-Type: application/json" \
You can’t perform that action at this time.
0 commit comments