POST api/comps

Request Information

URI Parameters

None.

Body Parameters

comps
NameDescriptionTypeAdditional information
id

decimal number

None.

code

integer

None.

name

string

None.

add

string

None.

tel

string

None.

mob

string

None.

mand

decimal number

None.

user_id

string

None.

use_web

boolean

None.

sent

boolean

None.

username

string

None.

password

string

None.

send_sms

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1.0,
  "code": 1,
  "name": "sample string 2",
  "add": "sample string 3",
  "tel": "sample string 4",
  "mob": "sample string 5",
  "mand": 1.0,
  "user_id": "sample string 6",
  "use_web": true,
  "sent": true,
  "username": "sample string 7",
  "password": "sample string 8",
  "send_sms": true
}

text/html

Sample:
{"id":1.0,"code":1,"name":"sample string 2","add":"sample string 3","tel":"sample string 4","mob":"sample string 5","mand":1.0,"user_id":"sample string 6","use_web":true,"sent":true,"username":"sample string 7","password":"sample string 8","send_sms":true}

application/xml, text/xml

Sample:
<comps xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWD_WEB.Models">
  <add>sample string 3</add>
  <code>1</code>
  <id>1</id>
  <mand>1</mand>
  <mob>sample string 5</mob>
  <name>sample string 2</name>
  <password>sample string 8</password>
  <send_sms>true</send_sms>
  <sent>true</sent>
  <tel>sample string 4</tel>
  <use_web>true</use_web>
  <user_id>sample string 6</user_id>
  <username>sample string 7</username>
</comps>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

comps
NameDescriptionTypeAdditional information
id

decimal number

None.

code

integer

None.

name

string

None.

add

string

None.

tel

string

None.

mob

string

None.

mand

decimal number

None.

user_id

string

None.

use_web

boolean

None.

sent

boolean

None.

username

string

None.

password

string

None.

send_sms

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1.0,
  "code": 1,
  "name": "sample string 2",
  "add": "sample string 3",
  "tel": "sample string 4",
  "mob": "sample string 5",
  "mand": 1.0,
  "user_id": "sample string 6",
  "use_web": true,
  "sent": true,
  "username": "sample string 7",
  "password": "sample string 8",
  "send_sms": true
}

text/html

Sample:
{"id":1.0,"code":1,"name":"sample string 2","add":"sample string 3","tel":"sample string 4","mob":"sample string 5","mand":1.0,"user_id":"sample string 6","use_web":true,"sent":true,"username":"sample string 7","password":"sample string 8","send_sms":true}

application/xml, text/xml

Sample:
<comps xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWD_WEB.Models">
  <add>sample string 3</add>
  <code>1</code>
  <id>1</id>
  <mand>1</mand>
  <mob>sample string 5</mob>
  <name>sample string 2</name>
  <password>sample string 8</password>
  <send_sms>true</send_sms>
  <sent>true</sent>
  <tel>sample string 4</tel>
  <use_web>true</use_web>
  <user_id>sample string 6</user_id>
  <username>sample string 7</username>
</comps>