https://github.com/fadilxcoder/fake-api-server
Provide fake REST API endpoints
https://github.com/fadilxcoder/fake-api-server
cronjob faker github-actions php poc rest-api typicode
Last synced: 3 months ago
JSON representation
Provide fake REST API endpoints
- Host: GitHub
- URL: https://github.com/fadilxcoder/fake-api-server
- Owner: fadilxcoder
- Created: 2022-04-10T09:10:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-14T22:52:34.000Z (about 1 year ago)
- Last Synced: 2024-04-15T03:46:10.443Z (about 1 year ago)
- Topics: cronjob, faker, github-actions, php, poc, rest-api, typicode
- Language: PHP
- Homepage: https://my-json-server.typicode.com/fadilxcoder/fake-api-server
- Size: 8.67 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notes
- RUN `php run` to populate with dummy data
- File should be name : `db.json`
- URL for API : https://my-json-server.typicode.com/fadilxcoder/fake-api-server
- JSON server fake api - Glitch URL : https://json-server-fake-api.glitch.me/
- `id: 1,` should be present in order to query specific data (https://my-json-server.typicode.com/fadilxcoder/fake-api-server/users/2)
- Can use `?_id=xxxxx` for queries
- Newman github action
- Command : `npm run start` - Start local JSON server# Docs
- https://github.com/marketplace/actions/composer-php-actions (Use the Composer CLI in your Github Actions.)
- https://github.com/marketplace/actions/setup-php-environment (Setup PHP environment)
- https://crontab.guru/ (Cron)
- Cron `*/2 * * * *` (At 2 minutes interval) / `0 6,18 * * *` (At 12 hours interval 06H00 - 18H00)
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows (Github action - Events that trigger workflows)### Github Action
- `.github/workflows/newman.yml`
- `.github/workflows/cron.yml`