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": "[email protected]",
"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}