POST api/Device/Video/Add

添加一个新的视频设备到系统中。

Request Information

URI Parameters

None.

Body Parameters

需要添加的设备的数据。

Dev_VideoTableItem
NameDescriptionTypeAdditional information
VideoId

设备ID Bigint PK AutoInc 这个是自增长量,插入时,这个值为空。

integer

Required

VideoName

设备名称 varchar(50) NN

string

Required

Max length: 50

Url

URL Url varchar(200)

string

Max length: 200

UserLoginName

用户名 varchar(50)

string

Max length: 50

Appid

AppId varchar(50)

string

Max length: 50

Reserve1

保留一 varchar(50)

string

Max length: 50

Reserve2

保留二 varchar(50)

string

Max length: 50

Pwd

密码 varchar(50) 尽量不要发往客户(离开核心API)

string

Max length: 50

AppSecret

AppSecret varchar(100) 尽量不要发往客户(离开核心API)

string

Max length: 50

WeChatPlayUrl

小程序视频播放地址

string

Max length: 400

PCPlayUrl

PC端或者移动端视频播放地址

string

Max length: 400

Request Formats

application/json, text/json

Sample:
{
  "VideoId": 1,
  "VideoName": "sample string 2",
  "Url": "sample string 3",
  "UserLoginName": "sample string 4",
  "Appid": "sample string 5",
  "Reserve1": "sample string 6",
  "Reserve2": "sample string 7",
  "Pwd": "sample string 8",
  "AppSecret": "sample string 9",
  "WeChatPlayUrl": "sample string 10",
  "PCPlayUrl": "sample string 11"
}

application/xml, text/xml

Sample:
<Dev_VideoTableItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.CleverFarmer">
  <AppSecret>sample string 9</AppSecret>
  <Appid>sample string 5</Appid>
  <PCPlayUrl>sample string 11</PCPlayUrl>
  <Pwd>sample string 8</Pwd>
  <Reserve1>sample string 6</Reserve1>
  <Reserve2>sample string 7</Reserve2>
  <Url>sample string 3</Url>
  <UserLoginName>sample string 4</UserLoginName>
  <VideoId>1</VideoId>
  <VideoName>sample string 2</VideoName>
  <WeChatPlayUrl>sample string 10</WeChatPlayUrl>
</Dev_VideoTableItem>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Dev_VideoTableItem'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

添加一个新的视频设备到系统中。

CommonOperationResultWithTagOfInt64
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

tag

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": 3
}

application/xml, text/xml

Sample:
<CommonOperationResultWithTagOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>3</tag>
</CommonOperationResultWithTagOflong>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.