POST api/Sliders/Add

Request Information

URI Parameters

None.

Body Parameters

SlidersAddDto
NameDescriptionTypeAdditional information
Category

string

None.

Width

integer

None.

Height

integer

None.

SliderItemAdd

Collection of SliderItemAddDto

None.

WebSiteID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "category": "sample string 1",
  "width": 2,
  "height": 3,
  "sliderItemAdd": [
    {
      "url": "sample string 1",
      "title": "sample string 2",
      "subTitle": "sample string 3",
      "content": "sample string 4",
      "href": "sample string 5",
      "order": 6,
      "sliderID": "fd92f531-206b-47e1-a43a-ae674e76101f"
    },
    {
      "url": "sample string 1",
      "title": "sample string 2",
      "subTitle": "sample string 3",
      "content": "sample string 4",
      "href": "sample string 5",
      "order": 6,
      "sliderID": "fd92f531-206b-47e1-a43a-ae674e76101f"
    }
  ],
  "webSiteID": "3a4aa173-0bd1-4cb3-b93a-c1b7ee5cff73"
}

application/xml, text/xml

Sample:
<SlidersAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
  <Category>sample string 1</Category>
  <Height>3</Height>
  <SliderItemAdd>
    <SliderItemAddDto>
      <Content>sample string 4</Content>
      <Href>sample string 5</Href>
      <Order>6</Order>
      <SliderID>fd92f531-206b-47e1-a43a-ae674e76101f</SliderID>
      <SubTitle>sample string 3</SubTitle>
      <Title>sample string 2</Title>
      <Url>sample string 1</Url>
    </SliderItemAddDto>
    <SliderItemAddDto>
      <Content>sample string 4</Content>
      <Href>sample string 5</Href>
      <Order>6</Order>
      <SliderID>fd92f531-206b-47e1-a43a-ae674e76101f</SliderID>
      <SubTitle>sample string 3</SubTitle>
      <Title>sample string 2</Title>
      <Url>sample string 1</Url>
    </SliderItemAddDto>
  </SliderItemAdd>
  <WebSiteID>3a4aa173-0bd1-4cb3-b93a-c1b7ee5cff73</WebSiteID>
  <Width>2</Width>
</SlidersAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"Category":"sample string 1","Width":2,"Height":3,"SliderItemAdd":[{"Url":"sample string 1","Title":"sample string 2","SubTitle":"sample string 3","Content":"sample string 4","Href":"sample string 5","Order":6,"SliderID":"fd92f531-206b-47e1-a43a-ae674e76101f"},{"Url":"sample string 1","Title":"sample string 2","SubTitle":"sample string 3","Content":"sample string 4","Href":"sample string 5","Order":6,"SliderID":"fd92f531-206b-47e1-a43a-ae674e76101f"}],"WebSiteID":"3a4aa173-0bd1-4cb3-b93a-c1b7ee5cff73"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.