From b6151e954825bb8bf23381a3ed3f3982604ae541 Mon Sep 17 00:00:00 2001 From: rrbharath Date: Mon, 25 May 2026 17:24:42 -0400 Subject: [PATCH] chore(docs): update readme code example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a423b3..322a154 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ async def root_get( return dict(ping=ping, api_name=conf.api_name) -@app.post("/jobs/schedule/") +@app.post("/jobs/schedule/{timeout}") async def job_post( timeout: int=fastapi.Query(..., title='the job sleep time'), cache: fastapi_plugins.TRedisPlugin, @@ -170,7 +170,7 @@ async def job_post( return job_id -@app.get("/jobs/status/") +@app.get("/jobs/status/{job_id}") async def job_get( job_id: str=fastapi.Query(..., title='the job id'), cache: fastapi_plugins.TRedisPlugin, @@ -184,7 +184,7 @@ async def job_get( return dict(job_id=job_id, status=status) -@app.post("/memcached/demo/") +@app.post("/memcached/demo/{key}") async def memcached_demo_post( key: str=fastapi.Query(..., title='the job id'), cache: fastapi_plugins.TMemcachedPlugin,