Trendsic Platform Service

<back to all web services

SiteContentRequest

The following routes are available for this service:
GET,PUT,POST,DELETE,OPTIONS/v1/SiteContent/{Category}
GET,PUT,POST,DELETE,OPTIONS/v1/SiteContent
GET,PUT,DELETE,POST,OPTIONS/v1/SiteContent/{Category}/{SortOrder}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SiteContentRequest
    {
        public String Category = null;
        public String SortOrder = null;
        public SiteContent SiteContent = null;
        
        public String getCategory() { return Category; }
        public SiteContentRequest setCategory(String value) { this.Category = value; return this; }
        public String getSortOrder() { return SortOrder; }
        public SiteContentRequest setSortOrder(String value) { this.SortOrder = value; return this; }
        public SiteContent getSiteContent() { return SiteContent; }
        public SiteContentRequest setSiteContent(SiteContent value) { this.SiteContent = value; return this; }
    }

    public static class SiteContent
    {
        public Integer Id = null;
        public String ContentHeader = null;
        public String ContentBody = null;
        public Date BeginDate = null;
        public Date EndDate = null;
        public Integer SortOrder = null;
        public String Category = null;
        
        public Integer getId() { return Id; }
        public SiteContent setId(Integer value) { this.Id = value; return this; }
        public String getContentHeader() { return ContentHeader; }
        public SiteContent setContentHeader(String value) { this.ContentHeader = value; return this; }
        public String getContentBody() { return ContentBody; }
        public SiteContent setContentBody(String value) { this.ContentBody = value; return this; }
        public Date getBeginDate() { return BeginDate; }
        public SiteContent setBeginDate(Date value) { this.BeginDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public SiteContent setEndDate(Date value) { this.EndDate = value; return this; }
        public Integer getSortOrder() { return SortOrder; }
        public SiteContent setSortOrder(Integer value) { this.SortOrder = value; return this; }
        public String getCategory() { return Category; }
        public SiteContent setCategory(String value) { this.Category = value; return this; }
    }

}

Java SiteContentRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/SiteContent/{Category} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SiteContentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Category>String</Category>
  <SiteContent>
    <BeginDate>0001-01-01T00:00:00</BeginDate>
    <Category>String</Category>
    <ContentBody>String</ContentBody>
    <ContentHeader>String</ContentHeader>
    <EndDate>0001-01-01T00:00:00</EndDate>
    <Id>0</Id>
    <SortOrder>0</SortOrder>
  </SiteContent>
  <SortOrder>String</SortOrder>
</SiteContentRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SiteContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <BeginDate>0001-01-01T00:00:00</BeginDate>
  <Category>String</Category>
  <ContentBody>String</ContentBody>
  <ContentHeader>String</ContentHeader>
  <EndDate>0001-01-01T00:00:00</EndDate>
  <Id>0</Id>
  <SortOrder>0</SortOrder>
</SiteContent>