Skip to content

abhinav822/company_assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem Statement: Create two API’s which can perform the specified CRUD operations.The project structure should have models, middlewares, controllers and services. Write MongoDB queries to fetch, update, add or delete data from the specified collections. You can assume that the collections already exist in the database and just define the project structure. Customer API

  1. Get all customers List with status ACTIVE [GET]
  2. Delete customer. [DELETE]
  3. Create new customer [POST] Card API
  4. Get all Card List[GET]
  5. Create new card [POST]

Customer collection field: Field Type Description firstName string lastName string mobileNumber string 10 digits long DOB date emailID string [email protected] address string customerID string UUID status string ACTIVE / INACTIVE

Card collection field: Field Type Description cardNumber string Auto_increment e.g: C001 cardType String [REGULAR/SPECIAL] customerName string status string [ACTIVE/INACTIVE] Default: ACTIVE vision string customerID string Reference from customer

About

JAIKISAN COMPANY ASSIGNMENT

Resources

Stars

Watchers

Forks