Sample adapter https://github.com/typicode/json-server ...
npm run dev
npm run server
Para testar vc pode carregar o ambiente da pasta ./insomnia/
em aplicativo Insomnia.
POST http://localhost:3001/login body:
{
"email": "admin@admin.com",
"password": "admin"
}
use authorization bearer
GET http://localhost:3001/users?q=
GET http://localhost:3001/users/{id}
POST http://localhost:3001/users
PUT http://localhost:3001/users/{id}
DELETE http://localhost:3001/users/{id}