- create
/users
endpoint - get data from https://jsonplaceholder.typicode.com/users
- format data to have object like
{
"id": 1,
"name": "Leanne Graham",
"email": "Sincere@april.biz",
"street": "street"
}
- return this data
- Get Data from created endpoint on load component
- create table like this
id | name | street | |
---|---|---|---|
1 | Dawid | dawid@mail.com | someStreet |
2 | Ivan | ivan@mail.com | otherStreet |
- Add table sorting by clicking on
id
orname
header.