Download the PHP package yesllc/dadjokes without Composer
On this page you can find all versions of the php package yesllc/dadjokes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yesllc/dadjokes
More information about yesllc/dadjokes
Files in yesllc/dadjokes
Package dadjokes
Short Description Dad jokes microservice used for testing of Kubernetes, Kong, Istio, Kuma, etc
License MIT
Homepage https://github.com/yesinteractive/dad-jokes_microservice
Informations about the package dadjokes
Dad Jokes Microservice
Just a sample microservice or echo service used for testing API Gateways such as Kong, Kubernetes K8s, Openshift, Docker,
Service meshes such as Kuma or Istio, etc. as an alternative to httpbin. Feel free
to add your own jokes
to this repo as well. In addition to a dad joke, the service will automatically echo back information about the
incoming request. This is helpful for testing and troubleshooting. If you wish to not display echo back the request
data, then just make the request against the /noecho
endpoint or by configuring the dadjokes service with the noecho environment variable set to true.
Hosted Service / Demo
Access http://dadjokes.online to see the service in action.
Usage
Endpoint URI : /
Method : GET
POST
PUT
PATCH
DELETE
Parameters : optional
Successful Response : 200 OK
DISABLING THE ECHO FEATURE
To disable the echoing of in the incomfing response, simply add the docker environment variable DADJOKES_NOECHO=TRUE
to your configuration or simply use the \noecho
endpoint in
the first level of your request calls. For example:
Endpoint URI : /noecho/abc/efg/
Method : GET
POST
PUT
PATCH
DELETE
Parameters : optional
Successful Response : 200 OK
Installation
Deployment Examples
See usage examples for Kubernetes, Kong for Kubernetes Ingress Controller, and docker-compose in the examples directory folder.
With Docker
Docker image is Alpine 3.11 based running PHP 7.3 on Apache. The containter exposes both ports 8100 (HTTP) an 8143 (HTTPS) with a self signed certificated. If you wish to alter the container configuration, feel free to use the Dockerfile in this repo (https://github.com/yesinteractive/dad-jokes_microservice/blob/master/Dockerfile). Otherwise, you can pull the latest image from DockerHub with the following command:
Typical basic usage (below example exposes dadjokes on host ports 8100 and 8143):
Typical usage in Dockerfile: