Develop py update schema (#37)

* feature: implement endpoints with multi-level response models
* refactor: move `/health` and `/config` endpoints to system module, remove example from base schemas
* refactor: remove unused get_standard_response_model()
This commit is contained in:
Jason Wang
2025-10-30 16:24:37 +08:00
committed by GitHub
parent 155603b1ca
commit e0884ab048
15 changed files with 89 additions and 71 deletions

View File

@@ -108,8 +108,7 @@ async def create_mapping(
response_data = DatasetMappingCreateResponse(
id=mapping.id,
labeling_project_id=str(mapping.labeling_project_id),
labeling_project_name=mapping.name or project_name,
message="Dataset mapping created successfully"
labeling_project_name=mapping.name or project_name
)
return StandardResponse(
@@ -341,8 +340,7 @@ async def delete_mapping(
message="success",
data=DeleteDatasetResponse(
id=id,
status="success",
message=f"Successfully deleted mapping and Label Studio project '{labeling_project_name}'"
status="success"
)
)