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

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

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`