Rewriting comments
This commit is contained in:
committed by
Magel, Denis
parent
579c62319c
commit
1a4e2ff688
@@ -10,7 +10,7 @@ router = APIRouter(tags=["config"])
|
|||||||
@router.post("/config", response_model=ConfigReturnSchema)
|
@router.post("/config", response_model=ConfigReturnSchema)
|
||||||
async def create_config(config: ConfigSchema) -> ConfigSchema:
|
async def create_config(config: ConfigSchema) -> ConfigSchema:
|
||||||
"""
|
"""
|
||||||
Endpoint to receive and return configuration data.
|
Endpoint to receive and store configuration data.
|
||||||
"""
|
"""
|
||||||
logger.info("Received configuration data")
|
logger.info("Received configuration data")
|
||||||
return config
|
return config
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# contains the schema definitions for the aggregate service
|
# contains the schema definitions for the config service
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# contains the business logic for the aggregate service
|
# contains the business logic for the config service
|
||||||
async def example_service() -> str:
|
async def save_config() -> None:
|
||||||
return "This is an aggregate service"
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user