npm.io
1.0.4 • Published 7 years ago

simple-user-api

Licence
MIT
Version
1.0.4
Deps
3
Size
3 kB
Vulns
0
Weekly
0

npm

NPM

Get Started

  1.  $ npm i simple-user-api
  2.  $ npm run dev
  3. Navigate to localhost:8000

I use postman to send requests

API

Note: when using the api send json in the body of the request.

This is an example user json file.


"username": "Gninoskcaj",
"password": "LetMeIn888",
"email": "jackson.mooring@gmail.com",
"ProUser": true
"Bio": "Making examples is not my thing"
"Example": "text more text so & so & so"

To Create a user: Send a post request to localhost:8000/users

To Get a user: Send a get request to localhost:8000/users/(username of user e.g. Gninoskcaj)

To update a user: Send a put request to localhost:8000/users/(username of user e.g. Gninoskcaj)
To delete a user: Send a delete request to localhost:8000/users/((username of user e.g. Gninoskcaj)

Keywords