POST api/addService

Request Information

URI Parameters

None.

Body Parameters

Service
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Description

string

None.

Active

boolean

None.

ShortDescription

string

None.

Type

integer

None.

ImageURL

string

None.

IconURL

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "Description": "sample string 3",
  "Active": true,
  "ShortDescription": "sample string 4",
  "Type": 1,
  "ImageURL": "sample string 5",
  "IconURL": "sample string 6"
}

text/html

Sample:
{"ID":1,"Name":"sample string 2","Description":"sample string 3","Active":true,"ShortDescription":"sample string 4","Type":1,"ImageURL":"sample string 5","IconURL":"sample string 6"}

application/xml, text/xml

Sample:
<Service xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MailAPI">
  <Active>true</Active>
  <Description>sample string 3</Description>
  <ID>1</ID>
  <IconURL>sample string 6</IconURL>
  <ImageURL>sample string 5</ImageURL>
  <Name>sample string 2</Name>
  <ShortDescription>sample string 4</ShortDescription>
  <Type>1</Type>
</Service>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
[
  {},
  {}
]

text/html

Sample:
[{},{}]

application/xml, text/xml

Sample:
<ArrayOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <anyType />
  <anyType />
</ArrayOfanyType>