101 lines
3.0 KiB
JSON
101 lines
3.0 KiB
JSON
|
|
{
|
||
|
|
"swagger": "2.0",
|
||
|
|
"info": {
|
||
|
|
"contact": {}
|
||
|
|
},
|
||
|
|
"paths": {
|
||
|
|
"/model/diagram_load/{page_id}": {
|
||
|
|
"get": {
|
||
|
|
"description": "load circuit diagram info by page id",
|
||
|
|
"consumes": [
|
||
|
|
"application/json"
|
||
|
|
],
|
||
|
|
"produces": [
|
||
|
|
"application/json"
|
||
|
|
],
|
||
|
|
"tags": [
|
||
|
|
"load circuit_diagram"
|
||
|
|
],
|
||
|
|
"summary": "load circuit diagram info",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"type": "integer",
|
||
|
|
"description": "page ID",
|
||
|
|
"name": "page_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "request process success",
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/definitions/network.SuccessResponse"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "request process failed",
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/definitions/network.FailureResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"definitions": {
|
||
|
|
"network.FailResponseHeader": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"err_msg": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"type": "integer",
|
||
|
|
"example": 400
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"network.FailureResponse": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"header": {
|
||
|
|
"$ref": "#/definitions/network.FailResponseHeader"
|
||
|
|
},
|
||
|
|
"payload": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"network.SuccessResponse": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"header": {
|
||
|
|
"$ref": "#/definitions/network.SuccessResponseHeader"
|
||
|
|
},
|
||
|
|
"payload": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"example": {
|
||
|
|
"key": "value"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"network.SuccessResponseHeader": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"err_msg": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"type": "integer",
|
||
|
|
"example": 200
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|