1.0.10 • Published 6 years ago

fake-users-administrator v1.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

API for fake users array

Installation

npm install fake-user-administrator

ARRAY :

var users = [
  {
    name : 'Mattia',
    surname : 'Parisi',
    email : 'mattiaparisi@gmail.com',
    id : 0
  },
  {
    name : 'Alessia',
    surname : 'Ciccarello',
    email : 'alessiaciccarello@gmail.com',
    id : 1
  },
  {
    name : 'Ciccio',
    surname : 'Belo',
    email : 'cicciobelo@gmail.com',
    id : 2
  },
  {
    name : 'Santo',
    surname : 'Terranova',
    email : 'santoterranova@gmail.com',
    id : 3
  },
  {
    name : 'Damiano',
    surname : 'Pulvirenti',
    email : 'damianopulvirenti@gmail.com',
    id : 4
  },
  {
    name : 'Enrico',
    surname : 'Bruno',
    email : 'enricobruno@gmail.com',
    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

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.0

6 years ago