| GET | /{Workspace}/MessageUser/{UserId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class MessageUser
{
public String ObjectId = null;
public String Workspace = null;
public String UserId = null;
public String ApplicationId = null;
public String DisplayName = null;
public String ImageUrl = null;
public String getObjectId() { return ObjectId; }
public MessageUser setObjectId(String value) { this.ObjectId = value; return this; }
public String getWorkspace() { return Workspace; }
public MessageUser setWorkspace(String value) { this.Workspace = value; return this; }
public String getUserId() { return UserId; }
public MessageUser setUserId(String value) { this.UserId = value; return this; }
public String getApplicationId() { return ApplicationId; }
public MessageUser setApplicationId(String value) { this.ApplicationId = value; return this; }
public String getDisplayName() { return DisplayName; }
public MessageUser setDisplayName(String value) { this.DisplayName = value; return this; }
public String getImageUrl() { return ImageUrl; }
public MessageUser setImageUrl(String value) { this.ImageUrl = value; return this; }
}
}
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 /{Workspace}/MessageUser/{UserId} HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml