| GET,OPTIONS | /v1/pm/project/activity |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PmActivityRequest
{
public String Uid = null;
public String getUid() { return Uid; }
public PmActivityRequest setUid(String value) { this.Uid = value; return this; }
}
public static class PmActivityResponse
{
public ArrayList<PmActivityItem> Activities = new ArrayList<PmActivityItem>();
public ResponseStatus ResponseStatus = null;
public ArrayList<PmActivityItem> getActivities() { return Activities; }
public PmActivityResponse setActivities(ArrayList<PmActivityItem> value) { this.Activities = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PmActivityResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class PmActivityItem
{
public String Type = null;
public String Name = null;
public String Status = null;
public String Note = null;
public String Date = null;
public String getType() { return Type; }
public PmActivityItem setType(String value) { this.Type = value; return this; }
public String getName() { return Name; }
public PmActivityItem setName(String value) { this.Name = value; return this; }
public String getStatus() { return Status; }
public PmActivityItem setStatus(String value) { this.Status = value; return this; }
public String getNote() { return Note; }
public PmActivityItem setNote(String value) { this.Note = value; return this; }
public String getDate() { return Date; }
public PmActivityItem setDate(String value) { this.Date = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/pm/project/activity HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Activities:
[
{
Type: String,
Name: String,
Status: String,
Note: String,
Date: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}