Skip to content

ErrLogic/nodelyridapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node API CRUD

Task Lyrid

Deployment

To deploy this project

Fill the config inside config/config.js according to your setup

  host: "localhost",
  user: "yourdatabaseusername",
  password: "yourdatabasepassword",
  database: "lyrid",

Install Node Modules

  npm install

Run Project

  node app.js

API Reference

Login

  POST /api/login
Parameter Type Description
username string Required
password string Required

Get User List

  GET /api/users
Parameter Type Description
Auth bearer token string Required. your login token

Get user by id

  GET /api/user/${id}
Parameter Type Description
id string Required. Id of item to fetch
Auth bearer token string Required. your login token

Create user

  POST /api/register
Parameter Type Description
full_name string Required
username string Required
password string Required

Update user by id

  PUT /api/user/${id}
Parameter Type Description
full_name string Required
username string Required
password string Required
Auth bearer token string Required. your login token

Delete user by id

  DELETE /api/user/${id}
Parameter Type Description
id string Required. Id of item to fetch
Auth bearer token string Required. your login token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors