Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

challenge-nodejs-mongo

nodejs with express and mongoDB

Model

Screen Shot 2022-09-13 at 22 21 12

Endpoints

Client

GET: /client
POST: /client

{
    "companyName": "Apple",
    "address": "New York ST 3000",
    "city": "New York",
    "state": "New York",
    "zip": "3000",
    "headCount": "12322"
}

GET: /client/get-by-name?name=someName
GET: /client/get-by-state?state=somestate

Member

GET: /member
POST: /member

{
  "name": "John",
  "phoneNumber": "Somewhere ST 3000",
  "email": "john@gmail.com",
  "note": [{
      "content": "first note"
  }],
  "clientId": "6320df4c310c6867c679cc00"
}

PATH: /member/add-note

{
  "name": "John",
  "note": [{
      "content": "second note"
  }]
}

PATH: /member/move-member

{
  "memberName": "John",
  "newClient": "Amazon",
  "note": [{
      "content": "Change note"
  },
  {
      "content": "Could be an array or nothing"
  }]
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages