| GET, PUT, POST, DELETE | /{Workspace}/DiscreetDocumentSchema | ||
|---|---|---|---|
| GET, PUT POST, DELETE | /{Workspace}/DiscreetDocumentSchema/{Type} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DiscreetDocumentSchema
{
public String Workspace = null;
public String Created = null;
public String LastUpdated = null;
public String Type = null;
public String Name = null;
public String Description = null;
public ArrayList<DiscreetDocumentField> FieldDefs = null;
public Boolean Enabled = null;
public String getWorkspace() { return Workspace; }
public DiscreetDocumentSchema setWorkspace(String value) { this.Workspace = value; return this; }
public String getCreated() { return Created; }
public DiscreetDocumentSchema setCreated(String value) { this.Created = value; return this; }
public String getLastUpdated() { return LastUpdated; }
public DiscreetDocumentSchema setLastUpdated(String value) { this.LastUpdated = value; return this; }
public String getType() { return Type; }
public DiscreetDocumentSchema setType(String value) { this.Type = value; return this; }
public String getName() { return Name; }
public DiscreetDocumentSchema setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public DiscreetDocumentSchema setDescription(String value) { this.Description = value; return this; }
public ArrayList<DiscreetDocumentField> getFieldDefs() { return FieldDefs; }
public DiscreetDocumentSchema setFieldDefs(ArrayList<DiscreetDocumentField> value) { this.FieldDefs = value; return this; }
public Boolean isEnabled() { return Enabled; }
public DiscreetDocumentSchema setEnabled(Boolean value) { this.Enabled = value; return this; }
}
public static class DiscreetDocumentField
{
public String Key = null;
public String Name = null;
public String Description = null;
public String DataType = null;
public Boolean Indexed = null;
public String getKey() { return Key; }
public DiscreetDocumentField setKey(String value) { this.Key = value; return this; }
public String getName() { return Name; }
public DiscreetDocumentField setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public DiscreetDocumentField setDescription(String value) { this.Description = value; return this; }
public String getDataType() { return DataType; }
public DiscreetDocumentField setDataType(String value) { this.DataType = value; return this; }
public Boolean isIndexed() { return Indexed; }
public DiscreetDocumentField setIndexed(Boolean value) { this.Indexed = value; return this; }
}
}
Java DiscreetDocumentSchema DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/DiscreetDocumentSchema HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Workspace":"String","Created":"String","LastUpdated":"String","Type":"String","Name":"String","Description":"String","FieldDefs":[{"Key":"String","Name":"String","Description":"String","DataType":"String","Indexed":false}],"Enabled":false}