Live Server https://randomuserapi-seby.onrender.com/api/v1/user.
I have performed CRUD operations on the .json file using Express and the file system module
- Get a random user from the .json file
- Get all the users from the .json file
- Limit the number of users using query parameter(s)
- Save a user in the .json file
- validate the body and check if all the required properties are present in the body.
- Update a user's information in the .json file using its id
- validate the user id
- Update multiple users' information in the .json file
- Take an array of user ids and assign it to the body.
- validate the body.
- Delete a user from the .json file using its id
- validate the user id
The following technologies was used to complete the challenge:
- node.js
- express.js
- cors
- dotenv
- nodemon