1.0.4 • Published 5 years ago

simple-user-api v1.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

npm

NPM

Get Started

  1. $ npm i simple-user-api
  1. $ npm run dev
  2. 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)
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago