Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bill-greatness/generate-samples
Generate placeholder JSON samples for your projects.
https://github.com/bill-greatness/generate-samples
json-api placeholder samples
Last synced: 21 days ago
JSON representation
Generate placeholder JSON samples for your projects.
- Host: GitHub
- URL: https://github.com/bill-greatness/generate-samples
- Owner: bill-greatness
- Created: 2022-04-23T22:28:04.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-25T18:01:06.000Z (almost 3 years ago)
- Last Synced: 2024-11-10T12:11:51.288Z (3 months ago)
- Topics: json-api, placeholder, samples
- Language: Python
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Fake JSON Samples Generation Scripts.
---
> Notice: Data generated from these scripts are generally fake. Should in case it reflects someone's private details, that's unintentional. A sample of this code is available in Golang and it is served over an API.Get placeholder samples for your projects using this mini scripts built in python.
- - -## Samples Available.
You can generate sample for your projects in regards to users data, posts, comments, todos and store products.### Users
Generate user samples.
Fields are selected at random. by default, you can get a result of *100* users at a time.
You can access user details on other sample files with their ID's.User Fields
```
id,
name,
occupation,
photoURL,
age,
dateOfBirth,
maritalStatus,
gender,
countryOfOrigin,
email,
phoneLine,
address:{
street,
cordinates:{
longitude,
latitude,
}
}
```### Todos
Generate placeholder Todo samples for you application. By default, you can access *30* todos.Todo Fields
```
id
activity,
status,
userID,
time```
### Posts
Generate placeholder Post Samples. By default *100* posts.Post Fields.
```
title,
content,
userID,
photoURL,
postID,
datePosted```
### Comments
Get Comments under a post with a specific postID. comments are picked from a sample of *80* commentsComment Fields
```
comment,
id,
postID,
userID,
datePosted,```