40 lines
812 B
JSON
40 lines
812 B
JSON
{
|
|
"openapi": "3.0.1",
|
|
"info": {
|
|
"title": "Enum Config Mapping Test API",
|
|
"version": "1.0"
|
|
},
|
|
"paths": {
|
|
"/api/v1/test/task-type": {
|
|
"get": {
|
|
"tags": ["Test"],
|
|
"summary": "Get task type",
|
|
"operationId": "getTaskType",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SysTaskTypeEnums"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"SysTaskTypeEnums": {
|
|
"type": "integer",
|
|
"description": "任务类型枚举",
|
|
"enum": [1, 2, 3, 4, 5, 6, 7],
|
|
"format": "int32"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|