https://github.com/schalkneethling/fake-user-api
Like the name says :) Provides a fake user data API as a serverless function running on Netlify
https://github.com/schalkneethling/fake-user-api
api javascript serverless-functions
Last synced: 9 months ago
JSON representation
Like the name says :) Provides a fake user data API as a serverless function running on Netlify
- Host: GitHub
- URL: https://github.com/schalkneethling/fake-user-api
- Owner: schalkneethling
- License: mit
- Created: 2024-12-04T20:34:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-11T23:29:59.000Z (about 1 year ago)
- Last Synced: 2025-02-02T05:42:53.641Z (11 months ago)
- Topics: api, javascript, serverless-functions
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fictional Folks
[](https://app.netlify.com/sites/fictionalfolks/deploys)
Like the name says 🤗 Provides a fake user data API as a serverless function running on Netlify.
## Usage
### Get random users
Use the following URL to get two random users:
```
https://fictionalfolks.netlify.app/.netlify/functions/users?count=2
```
The response object will be as below for each user:
```json
{
"firstName": "Selene",
"lastName": "Farrow",
"avatarURL": "selene.svg",
"role": "Flow Architect",
"email": "selene@nimbus.tech",
"telephone": "+1 (555) 123-4567",
"social": {
"bluesky": {
"name": "Bluesky",
"url": "https://bsky.app/profile/selene.farrow"
},
"mastodon": {
"name": "Mastodon",
"url": "https://mastodon.social/@selenefarrow"
},
"linkedin": {
"name": "LinkedIn",
"url": "https://linkedin.com/in/selenefarrow"
}
}
}
```
### Get all users
Use the following URL to get all users:
```
https://fictionalfolks.netlify.app/.netlify/functions/users
```
The response object will be an array of user objects as shown above.
## License
This project and service is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Big Thank You
A big thank you goes out to the folks at Craftworks who produces the Free Userpicks Pack used for the avatars. You can [find the pack on their website](https://userpics.craftwork.design/).