From b1cfea538048fc46577369aa9fc416fdd71d5bd7 Mon Sep 17 00:00:00 2001 From: Samuele Barzaghi Date: Sat, 2 Nov 2024 14:25:24 +0100 Subject: [PATCH] Fixed docstring --- core/cat/mad_hatter/decorators/endpoint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cat/mad_hatter/decorators/endpoint.py b/core/cat/mad_hatter/decorators/endpoint.py index 7d8114b33..52538317b 100644 --- a/core/cat/mad_hatter/decorators/endpoint.py +++ b/core/cat/mad_hatter/decorators/endpoint.py @@ -42,7 +42,7 @@ def endpoint( Define a custom API endpoint, parameters are the same as FastAPI path operation. Examples: .. code-block:: python - from cat.mad_hatter.decorators.endpoint import endpoint + from cat.mad_hatter.decorators import endpoint @endpoint.endpoint(path="/hello", methods=["GET"]) def my_endpoint(): @@ -78,7 +78,7 @@ def get( Define a custom API endpoint for GET operation, parameters are the same as FastAPI path operation. Examples: .. code-block:: python - from cat.mad_hatter.decorators.endpoint import endpoint + from cat.mad_hatter.decorators import endpoint @endpoint.get(path="/hello") def my_get_endpoint(): @@ -108,7 +108,7 @@ def post( Examples: .. code-block:: python - from cat.mad_hatter.decorators.endpoint import endpoint + from cat.mad_hatter.decorators import endpoint from pydantic import BaseModel class Item(BaseModel):