Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thegeorgeous/pascal
A simple chaos server to test webhooks
https://github.com/thegeorgeous/pascal
Last synced: 20 days ago
JSON representation
A simple chaos server to test webhooks
- Host: GitHub
- URL: https://github.com/thegeorgeous/pascal
- Owner: thegeorgeous
- License: mit
- Created: 2019-07-23T07:28:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T06:00:16.000Z (almost 2 years ago)
- Last Synced: 2023-08-06T14:36:49.744Z (over 1 year ago)
- Language: Ruby
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pascal
A simple Sinatra server that will return a random http status
## Usage
Run `./run` to start the server. You can then access the server at `http://localhost:4567/crm`
You can specify the probability of success by providing a query params
```shell
# This will return HTTP status 200 with 80% probability
curl -i http://localhost:4567/crm/80
```If no query params are specified, it will always return succcess
```shell
# This will always return HTTP status 200
curl -i http://localhost:4567/crm/
```You can also specify a delay in seconds
```shell
# This will return delay the response by 4 seconds
curl -i http://localhost:4567/crm/delay/4
```If no query params are specified, it will delay by 3 seconds
```shell
# This will delay response by 3 seconds
curl -i http://localhost:4567/crm/delay
```You can also specify delay with a probability
```shell
# This will delay response by 4 seconds with 80% probability
curl -i http://localhost:4567/crm/80/4
```The server accepts GET and POST requests