Update get users endpoint
This commit is contained in:
1 parent
6db9a2f960
commit
3f65973f0c
1 file changed
+3
-4
@@ -513,7 +513,6 @@ curl --request POST \
|
|||||||
curl --request GET \
|
curl --request GET \
|
||||||
--url http://localhost:5000/api/v1/auth/users \
|
--url http://localhost:5000/api/v1/auth/users \
|
||||||
--header 'Authorization: <bearer_token>\
|
--header 'Authorization: <bearer_token>\
|
||||||
--header 'User-Agent: insomnia/2023.5.8'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Sample Resonse
|
##### Sample Resonse
|
||||||
@@ -525,9 +524,9 @@ curl --request GET \
|
|||||||
"data": [
|
"data": [
|
||||||
{
|
{
|
||||||
"_id": "669e90072d5663d25808bc7b",
|
"_id": "669e90072d5663d25808bc7b",
|
||||||
"firstName": "Alex",
|
"firstName": "First name",
|
||||||
"lastName": "Holliday",
|
"lastName": "Last name",
|
||||||
"email": "test@test.com",
|
"email": "name@gmail.com",
|
||||||
"isActive": true,
|
"isActive": true,
|
||||||
"isVerified": false,
|
"isVerified": false,
|
||||||
"role": ["admin"],
|
"role": ["admin"],
|
||||||
|
|||||||
Reference in new issue
Block a user