https://github.com/sanjaydevtech/json-placeholder-server
JSON fake placeholder api
https://github.com/sanjaydevtech/json-placeholder-server
expressjs fake-api heroku json-api json-placeholder nodejs
Last synced: about 1 month ago
JSON representation
JSON fake placeholder api
- Host: GitHub
- URL: https://github.com/sanjaydevtech/json-placeholder-server
- Owner: SanjayDevTech
- Created: 2020-12-28T15:41:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-03T11:09:07.000Z (over 1 year ago)
- Last Synced: 2025-01-25T16:44:29.126Z (3 months ago)
- Topics: expressjs, fake-api, heroku, json-api, json-placeholder, nodejs
- Language: JavaScript
- Homepage: https://json-placeholder-server.onrender.com/
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json-placeholder-server
## Features
- Own database
- Highly customizable## Data preparation
- Plan your data
- Specify your rule in db-rules.js
- Place the data in db.js## Configuration
- Edit `config.js` for fallback port and flag to show status code in response.
- Edit `db-rules.js` for rules.
- Edit `db.js` for your data.
- Run `test.js` to verify your data with rules.## Data I have added
- Three collections
- Posts
- Foods
- Users
- Each document in a collection has a document id. It can be mentioned in `db-rules.js`.
- Posts (id)
- Foods (id)
- Users (user_id)## API
- {domain}/
- Will list all data
- {domain}/{collection_name}/
- List all data inside a collection
- {domain}/{collection_name}/{document_id}
- List the matched document with document id