List users
GET
/usersReturns all users.
Responses
A list of users
| Name | Type | Description |
|---|---|---|
id ? | integer | |
name ? | string | |
username ? | string | |
email ? | string | |
phone ? | string | |
website ? | string |
curl -X GET 'https://jsonplaceholder.typicode.com/users'const response = await fetch('https://jsonplaceholder.typicode.com/users', {
method: 'GET',
headers: { 'Accept': 'application/json' }
});
const data = await response.json();