From bfa3aaf9ac6814fdf1454c708107a0a3eb3563d8 Mon Sep 17 00:00:00 2001 From: KUOKA Yusuke Date: Fri, 19 Apr 2019 16:39:09 +0900 Subject: [PATCH] fix(doc): Update README about read/write endpoints I was following https://github.com/stefanprodan/k8s-podinfo/blob/master/docs/1-deploy.md#using-the-helm-chart and `helm test` failed. The cause seemed like changes in two endpoints. `POST /write` seems to have changed to `POST /store`, and `GET /read/{hash}` to `GET /store/{hash}`. Here's the fix according to my observation :) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b43b4b..f1d801f 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ Web API: * `POST /token` issues a JWT token valid for one minute `JWT=$(curl -sd 'anon' podinfo:9898/token | jq -r .token)` * `GET /token/validate` validates the JWT token `curl -H "Authorization: Bearer $JWT" podinfo:9898/token/validate` * `GET /configs` returns a JSON with configmaps and/or secrets mounted in the `config` volume -* `POST /write` writes the posted content to disk at /data/hash and returns the SHA1 hash of the content -* `GET /read/{hash}` returns the content of the file /data/hash if exists +* `POST /store` writes the posted content to disk at /data/hash and returns the SHA1 hash of the content +* `GET /store/{hash}` returns the content of the file /data/hash if exists * `GET /ws/echo` echos content via websockets `podcli ws ws://localhost:9898/ws/echo` ### Guides