Skip to content

vandynem/node-mongoose-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mongoose-core

Table of Contents

Register

Method & URL

POST http://localhost:3000/users/registration

Headers

Content-Type : application/json

Body

{
  "username": "",
  "email": "",
  "password": ""
}

Return

{
  "success": true,
  "payload": {
    "_id": "",
    "username": ""
  }
}

^Top

Login

Method & URL

POST http://localhost:3000/users/login

Headers

Content-Type : application/json

Body

{
  "email": "",
  "password": ""
}

Return

{
  "success": true,
  "payload": {
    "_id": "",
    "token": ""
  }
}

^Top

Get All User

Method & URL

POST http://localhost:3000/users/get-all

Headers

Content-Type : application/json

Params

?page=INTEGER&limit=INTEGER

Body

None

Return

{
  "status": true,
  "payload": {
    "records": [
      {
        "_id": "",
        "username": "",
        "created": ""
      }
    ],
    "limits": "NUMBER"
  }
}

^Top

Get Owner By Id

Method & URL

POST http://localhost:3000/users/find

Headers

Content-Type : application/json
access-token : token

Body

{
  "_id": ""
}

Return

{
  "success": true,
  "payload": {
    "_id": "",
    "username": "",
    "email": "",
    "password": "",
    "created": ""
  }
}

^Top

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors