From f0c4ad72923e09bd4ac009c3733d85eb19c137c4 Mon Sep 17 00:00:00 2001 From: Ayush More Date: Wed, 23 Jul 2025 18:51:54 +0530 Subject: [PATCH 1/2] Update backend plugin tutorial to refer to /todos endpoint instead of /health This PR updates the backend plugin tutorial documentation to match the current plugin template. Previously, the tutorial referenced a /health endpoint, which does not exist in the generated backend plugin. Signed-off-by: Ayush More --- docs/plugins/backend-plugin.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/plugins/backend-plugin.md b/docs/plugins/backend-plugin.md index bfd210aeb9..7dbc6cdc54 100644 --- a/docs/plugins/backend-plugin.md +++ b/docs/plugins/backend-plugin.md @@ -48,11 +48,18 @@ This will think for a bit, and then say `Listening on :7007`. In a different terminal window, now run ```sh -curl localhost:7007/api/carmen/health +curl localhost:7007/api/carmen/todos ``` -This should return `{"status":"ok"}`. Success! Press `Ctrl + c` to stop it -again. +You should see the following response: +```sh +{ +"items": [] +} +``` +:::note Note: The route shown here matches the default in the current backend plugin template. If you want a `/health` endpoint for health checks, you can add it to your router yourself. + +::: ## Developing your Backend Plugin From be76b403d8f09076f3e088c1970f796271bc4c56 Mon Sep 17 00:00:00 2001 From: Ayush More Date: Wed, 23 Jul 2025 22:49:50 +0530 Subject: [PATCH 2/2] Json fixxxxx Signed-off-by: Ayush More --- docs/plugins/backend-plugin.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/plugins/backend-plugin.md b/docs/plugins/backend-plugin.md index 7dbc6cdc54..9b8b63fc89 100644 --- a/docs/plugins/backend-plugin.md +++ b/docs/plugins/backend-plugin.md @@ -52,11 +52,13 @@ curl localhost:7007/api/carmen/todos ``` You should see the following response: -```sh + +```json { -"items": [] -} + "items": [] +} ``` + :::note Note: The route shown here matches the default in the current backend plugin template. If you want a `/health` endpoint for health checks, you can add it to your router yourself. :::