Test Node js ( API Creating and Test in Postman )
BACKEND MACHINE TEST F.M: 50 TIME: 1 HR 30 MIN Question: 1 You have a develop API with CRUD OPERATION and test that API using POSTMAN TOOL: NOTE: CREATE A NEW APP FOR THE API CREATION AND INSTALL THE DEPENDENCY REQUIRED FOR API CREATION. NOTE THE BELOW POINTS: CREATE A MODAL SCHEMA FOR RAILINFO : Fields : { _id:’’ , train_no:’’ , train_name:’’ , src_station:’’,dest_station:’’,platform_no:’’,dep_time:’’,arr_time:’’} CREATE THE CONTROLLER FOR THE BELOW OPERATIONS ON API : FETCH ALL TRAIN INFO FIND SPECIFIC TRAIN INFO based on src_station , dest_station INSERT TRAIN INFO UPDATE TRAIN INFO based on train_no DELETE TRAIN INFO based on train _id CREATE THE PROPER ROUTING FOR API. TEST EACH ENDPOINTS USING POSTMAN and provide the screenshots Attached. Task Overview: You need to develop an API that supports CRUD operations (Create, Read, Update, Delete) for train information. The API will be tested using the Postman tool. The steps below will guide you through creating