<back to all web services

ThreadUpdateRequest

The following routes are available for this service:
PUT/RestApi/comments-api/threads
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ThreadUpdateRequest
    {
        public String Key = null;
        public Boolean IsClosed = null;
        
        public String getKey() { return Key; }
        public ThreadUpdateRequest setKey(String value) { this.Key = value; return this; }
        public Boolean getIsClosed() { return IsClosed; }
        public ThreadUpdateRequest setIsClosed(Boolean value) { this.IsClosed = value; return this; }
    }

    public static class ThreadResponse
    {
        public String Key = null;
        public String Type = null;
        public Integer CommentsCount = null;
        public String Title = null;
        public String Language = null;
        public Boolean IsClosed = null;
        public String GroupKey = null;
        public String ItemUrl = null;
        public String DataSource = null;
        public BigDecimal AverageRating = null;
        
        public String getKey() { return Key; }
        public ThreadResponse setKey(String value) { this.Key = value; return this; }
        public String getType() { return Type; }
        public ThreadResponse setType(String value) { this.Type = value; return this; }
        public Integer getCommentsCount() { return CommentsCount; }
        public ThreadResponse setCommentsCount(Integer value) { this.CommentsCount = value; return this; }
        public String getTitle() { return Title; }
        public ThreadResponse setTitle(String value) { this.Title = value; return this; }
        public String getLanguage() { return Language; }
        public ThreadResponse setLanguage(String value) { this.Language = value; return this; }
        public Boolean getIsClosed() { return IsClosed; }
        public ThreadResponse setIsClosed(Boolean value) { this.IsClosed = value; return this; }
        public String getGroupKey() { return GroupKey; }
        public ThreadResponse setGroupKey(String value) { this.GroupKey = value; return this; }
        public String getItemUrl() { return ItemUrl; }
        public ThreadResponse setItemUrl(String value) { this.ItemUrl = value; return this; }
        public String getDataSource() { return DataSource; }
        public ThreadResponse setDataSource(String value) { this.DataSource = value; return this; }
        public BigDecimal getAverageRating() { return AverageRating; }
        public ThreadResponse setAverageRating(BigDecimal value) { this.AverageRating = value; return this; }
    }

}

Java ThreadUpdateRequest DTOs

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

HTTP + OTHER

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

PUT /RestApi/comments-api/threads HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Key":"String","IsClosed":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Key":"String","Type":"String","CommentsCount":0,"Title":"String","Language":"String","IsClosed":false,"GroupKey":"String","ItemUrl":"String","DataSource":"String","AverageRating":0}