https://github.com/itsproali/random-user-api
https://github.com/itsproali/random-user-api
expressjs itsproali mohammad-ali nodejs random-users-api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itsproali/random-user-api
- Owner: itsproali
- Created: 2022-09-03T13:55:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T17:55:24.000Z (over 3 years ago)
- Last Synced: 2025-04-14T15:19:55.833Z (12 months ago)
- Topics: expressjs, itsproali, mohammad-ali, nodejs, random-users-api
- Language: JavaScript
- Homepage: https://random-user-api-daq3.onrender.com/
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Random User Api : [Live Server](https://random-user-api-daq3.onrender.com)
## This is a server to getting random user from a json file. I have implemented CRUD operations using file system and ExpressJS.
## Features:
### GET /user/random A random user
- Get a random user from the .json file
### GET /user/all A list of random users
- Get all the users from the .json file
- Limit the number of users using query parameter(s)
### POST /user/save Save a random user
- Save a user in the .json file
- validate the body and check if all the required properties are present in the body.
### PATCH /user/update Update a random user
- Update a user's information in the .json file using its id
- validate the user id
### PATCH /user/bulk-update update multiple users
- Update multiple users' information in the .json file
- Take an array of user ids and assign it to the body.
- validate the body.
### DELETE /user/ delete
- Delete a user from the .json file using its id
- validate the user id