Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`
---