miniapi
./build.sh
miniapi
curl localhost:8080/v1/world
# JSON
curl -d '{"hello":"world"}' -H 'account: 4321' 'localhost:8080/v1/hello?a=b' | jq
# multipart/form-data
curl -F param1=value1 -F param2=value2 'localhost:8080/v1/world?a=b' | jq
# application/x-www-form-urlencoded
curl -H "Content-Type: application/x-www-form-urlencoded" -d "param1=value1¶m2=value2" 'localhost:8080/v1/world?a=b' | jq
# miniapi default route list is: ROUTE=/v1/hello;/v1/world;/card/{cardId}
curl -X DELETE localhost:8080/card/1234
Docker hub:
https://hub.docker.com/r/udhos/miniapi
Run from docker hub:
docker run -p 8080:8080 --rm udhos/miniapi:0.0.1
Build recipe:
./docker/build.sh
docker push -a udhos/miniapi
See https://udhos.github.io/miniapi/.
mkdir charts
cd charts
helm create miniapi
Then edit files.
helm lint ./charts/miniapi --values charts/miniapi/values.yaml
helm template miniapi ./charts/miniapi --values charts/miniapi/values.yaml
helm install miniapi ./charts/miniapi --values charts/miniapi/values.yaml --dry-run
A chart repository is an HTTP server that houses one or more packaged charts. A chart repository is an HTTP server that houses an index.yaml file and optionally (*) some packaged charts.
(*) Optionally since the package charts could be hosted elsewhere and referenced by the index.yaml file.
docs
├── index.yaml
└── miniapi-0.1.3.tgz
See script update-charts.sh:
# generate chart package from source
helm package ./charts/miniapi -d ./docs
# regenerate the index from existing chart packages
helm repo index ./docs --url https://udhos.github.io/miniapi/
helm install miniapi ./charts/miniapi --values charts/miniapi/values.yaml
helm upgrade miniapi ./charts/miniapi --values charts/miniapi/values.yaml
helm uninstall miniapi