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