Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def root_get(
return dict(ping=ping, api_name=conf.api_name)


@app.post("/jobs/schedule/<timeout>")
@app.post("/jobs/schedule/{timeout}")
async def job_post(
timeout: int=fastapi.Query(..., title='the job sleep time'),
cache: fastapi_plugins.TRedisPlugin,
Expand Down Expand Up @@ -170,7 +170,7 @@ async def job_post(
return job_id


@app.get("/jobs/status/<job_id>")
@app.get("/jobs/status/{job_id}")
async def job_get(
job_id: str=fastapi.Query(..., title='the job id'),
cache: fastapi_plugins.TRedisPlugin,
Expand All @@ -184,7 +184,7 @@ async def job_get(
return dict(job_id=job_id, status=status)


@app.post("/memcached/demo/<key>")
@app.post("/memcached/demo/{key}")
async def memcached_demo_post(
key: str=fastapi.Query(..., title='the job id'),
cache: fastapi_plugins.TMemcachedPlugin,
Expand Down