POST api/label/save

保存标签

Request Information

URI Parameters

None.

Body Parameters

Label
NameDescriptionTypeAdditional information
ID

编号

integer

None.

LabelName

目录名称

string

None.

CreatedTime

创建时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "LabelName": "sample string 2",
  "CreatedTime": "2024-09-25T00:12:00.609442+08:00"
}

text/html

Sample:
{"ID":1,"LabelName":"sample string 2","CreatedTime":"2024-09-25T00:12:00.609442+08:00"}

application/xml, text/xml

Sample:
<Label xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <CreatedTime>2024-09-25T00:12:00.609442+08:00</CreatedTime>
  <ID>1</ID>
  <LabelName>sample string 2</LabelName>
</Label>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存标签

JsonRtnDtoOfLabel
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Label

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "ID": 1,
    "LabelName": "sample string 2",
    "CreatedTime": "2024-09-25T00:12:00.609442+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"ID":1,"LabelName":"sample string 2","CreatedTime":"2024-09-25T00:12:00.609442+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfLabelmEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:CreatedTime>2024-09-25T00:12:00.609442+08:00</d2p1:CreatedTime>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:LabelName>sample string 2</d2p1:LabelName>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfLabelmEDjlcEG>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"ID":1,"LabelName":"sample string 2","CreatedTime":"2024-09-25T00:12:00.609442+08:00"}});