Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdrakibmia99/random-user-api
Live link
https://github.com/mdrakibmia99/random-user-api
Last synced: about 10 hours ago
JSON representation
Live link
- Host: GitHub
- URL: https://github.com/mdrakibmia99/random-user-api
- Owner: mdrakibmia99
- Created: 2022-09-04T15:15:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-20T10:30:13.000Z (over 2 years ago)
- Last Synced: 2023-03-10T08:42:02.027Z (almost 2 years ago)
- Language: JavaScript
- Homepage: https://random-user-api-59jf.onrender.com/
- Size: 163 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random User API
## Features
* To **get a random user by get method** type `https://random-user-api-59jf.onrender.com/user/random`
* To **get all user byt get method** type `https://random-user-api-59jf.onrender.com/user/all`
* To **post a user by post method** type `https://random-user-api-59jf.onrender.com/user/save` and example data:
```bash
{
"id": 11,
"gender": "Female",
"name": "Hasna hena",
"contact": "123-456-78915",
"address": "19-C Narsingdi, Dhaka",
"photoURL": "https://robohash.org/eteosquidem.png?size=500x500&set=set1"
}
```
* To **update a user** type `https://random-user-api-59jf.onrender.com/user/update/5`
```bash
{
"id": 5,
"gender": "Male",
"name": "Rakib Mia",
"contact": "01905-458493",
"address": "04-D Gazipur, Dhaka",
"photoURL": "https://robohash.org/eteosquidem.png?size=500x500&set=set1"
}
```
* To **update multiple user** type `https://random-user-api-59jf.onrender.com/user/bulk-update?id=1-10-11`
```bash
[
{
"id": 1,
"gender": "Non-binary",
"name": "Agnes Siveter1",
"contact": "141-988-7479",
"address": "01 Hoffman Center",
"photoURL": "https://robohash.org/etlaborumquod.png?size=500x500&set=set1"
},
{
"id": 10,
"gender": "Female",
"name": "Nell Castano1",
"contact": "367-938-6123",
"address": "3073 Larry Pass",
"photoURL": "https://robohash.org/adquidolores.png?size=500x500&set=set1"
},
{
"id": 11,
"gender": "Female",
"name": "Sadia Khanum1",
"contact": "123-456-78915",
"address": "19-C Narsingdi, Dhaka",
"photoURL": "https://robohash.org/eteosquidem.png?size=500x500&set=set1"
}
]
```
* To **delete a user** type `https://random-user-api-59jf.onrender.com/user/delete/2`
---