fake-users-administrator
v1.0.10
Published
a fake user array administrator
Downloads
6
Readme
API for fake users array
Installation
npm install fake-user-administrator
ARRAY :
var users = [
{
name : 'Mattia',
surname : 'Parisi',
email : '[email protected]',
id : 0
},
{
name : 'Alessia',
surname : 'Ciccarello',
email : '[email protected]',
id : 1
},
{
name : 'Ciccio',
surname : 'Belo',
email : '[email protected]',
id : 2
},
{
name : 'Santo',
surname : 'Terranova',
email : '[email protected]',
id : 3
},
{
name : 'Damiano',
surname : 'Pulvirenti',
email : '[email protected]',
id : 4
},
{
name : 'Enrico',
surname : 'Bruno',
email : '[email protected]',
id : 5
},
];
API's functions:
- Get an user
- Get an user by id
- POST an user
- DELETE an user by id
- PUT an existent user
- RESET users array
ROOTS:
- GET : /users (get users array)
- GET : /users/:id (get an user from users array by id)
- POST : /users (post an user on the array)
- DELETE : /users/:id (delete an user from users array by id)
- PUT : /users/:id (edit an user of users array)
- put : /users (reset users array)
Author
Mattia Parisi