JULIERAJ / KIDS-FIRST-Back

KIDS FIRST 2024 MVP Backend
0 stars 1 forks source link

Feat/47/kids controller #60

Closed ElenaCherpakova closed 1 month ago

ElenaCherpakova commented 1 month ago

Create Kid service and Kid controller

Notes

Once you pull the latest changes please remove your node_modules running followin command: rm -rf node_modules and run npm i. The reason is that the spread and rest operatorscan only be used in Node.js version 8.0.0 and above

Testing Instructions for Postman

Create Kid. Make sure you pass JWT token cause only authorized and authenticated user can create a kid Screen Shot 2024-07-28 at 5 53 32 PM Get the list of kids for particular user Screen Shot 2024-07-28 at 5 53 56 PM Update Kid Info Screen Shot 2024-07-28 at 5 54 29 PM Delete Kid (Once Kid is deleted it also removed from array in User model) Screen Shot 2024-07-28 at 5 54 57 PM

Shared Kid Created separate service and controller for that.

Checklist