From d5446e6975312e38408a52ab935b58df9329483e Mon Sep 17 00:00:00 2001 From: Vedran Vidovic Date: Thu, 31 Oct 2024 09:52:29 +0100 Subject: [PATCH] docs: fix the example ssls endpoint Updated the admin API calls to correct ssls endpoint. --- docs/en/latest/example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/latest/example.md b/docs/en/latest/example.md index 93d83fb9..a6bee4f1 100644 --- a/docs/en/latest/example.md +++ b/docs/en/latest/example.md @@ -66,14 +66,14 @@ curl http://127.0.0.1:9180/apisix/admin/routes/22 -H 'X-API-KEY: edd1c9f034335f1 "service_id": "2" }' -curl http://127.0.0.1:9180/apisix/admin/ssl/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d " +curl http://127.0.0.1:9180/apisix/admin/ssls/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d " { \"cert\": \"$( cat './mkcert/lvh.me+1.pem')\", \"key\": \"$( cat './mkcert/lvh.me+1-key.pem')\", \"sni\": \"lvh.me\" }" -curl http://127.0.0.1:9180/apisix/admin/ssl/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d " +curl http://127.0.0.1:9180/apisix/admin/ssls/2 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d " { \"cert\": \"$( cat './mkcert/lvh.me+1.pem')\", \"key\": \"$( cat './mkcert/lvh.me+1-key.pem')\",