Skip to content

valmirphp/json-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON-SERVER With Authorization JWT

Sample adapter https://github.com/typicode/json-server ...

Run dev

npm run dev

Start server

npm run server

Insomnia

Para testar vc pode carregar o ambiente da pasta ./insomnia/ em aplicativo Insomnia.

Rotas

Login

POST http://localhost:3001/login body:

{
  "email": "admin@admin.com",
  "password": "admin"
}

Resource USER (CRUD)

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}

About

sample json-server authorization token

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published