StarterTemplate ASP.NET Host

<back to all web services

Author

The following routes are available for this service:
All Verbs/api/authors
Author Parameters:
NameParameterData TypeRequiredDescription
IdqueryintNo
NamequerystringNo
BirthdayqueryDateTimeNo
LastActivityqueryDateTime?No
Earningsquerydecimal?No
ActivequeryboolNo
CityquerystringNo
CommentsquerystringNo
RatequeryshortNo
AuthorResponse Parameters:
NameParameterData TypeRequiredDescription
Results1formList<Author>No
Results2formList<Author>No
Results3formList<Author>No
Results4formList<Author>No
Results5formList<Author>No
Results6formList<Author>No
Results7formList<Author>No
Results8formList<Author>No
ResponseStatusformResponseStatusNo

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 /xml/reply/Author HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: application/xml
Content-Length: length

<Author xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocialBootstrapApi.ServiceInterface">
  <Active>false</Active>
  <Birthday>0001-01-01T00:00:00</Birthday>
  <City>String</City>
  <Comments>String</Comments>
  <Earnings>0</Earnings>
  <Id>0</Id>
  <LastActivity>0001-01-01T00:00:00</LastActivity>
  <Name>String</Name>
  <Rate>0</Rate>
</Author>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AuthorResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocialBootstrapApi.ServiceInterface">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Results1>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results1>
  <Results2>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results2>
  <Results3>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results3>
  <Results4>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results4>
  <Results5>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results5>
  <Results6>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results6>
  <Results7>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results7>
  <Results8>
    <Author>
      <Active>false</Active>
      <Birthday>0001-01-01T00:00:00</Birthday>
      <City>String</City>
      <Comments>String</Comments>
      <Earnings>0</Earnings>
      <Id>0</Id>
      <LastActivity>0001-01-01T00:00:00</LastActivity>
      <Name>String</Name>
      <Rate>0</Rate>
    </Author>
  </Results8>
</AuthorResponse>