GET | /RestApi/comments-api/comments/{key} |
---|
namespace Telerik.Sitefinity.Services.Comments.DTO
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CommentResponse() =
member val Key:String = null with get,set
member val Name:String = null with get,set
member val Message:String = null with get,set
member val DateCreated:DateTime = new DateTime() with get,set
member val ProfilePictureUrl:String = null with get,set
member val ProfilePictureThumbnailUrl:String = null with get,set
member val Status:String = null with get,set
member val Email:String = null with get,set
member val ThreadKey:String = null with get,set
member val AuthorIpAddress:String = null with get,set
member val CustomData:String = null with get,set
member val Rating:Nullable<Decimal> = new Nullable<Decimal>() with get,set
[<AllowNullLiteral>]
type CommentGetRequest() =
member val Key:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/comments-api/comments/{key} HTTP/1.1 Host: www.asg.com.au Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CommentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.Comments.DTO"> <AuthorIpAddress>String</AuthorIpAddress> <CustomData>String</CustomData> <DateCreated>0001-01-01T00:00:00</DateCreated> <Email>String</Email> <Key>String</Key> <Message>String</Message> <Name>String</Name> <ProfilePictureThumbnailUrl>String</ProfilePictureThumbnailUrl> <ProfilePictureUrl>String</ProfilePictureUrl> <Rating>0</Rating> <Status>String</Status> <ThreadKey>String</ThreadKey> </CommentResponse>