Field Squared API Services

<back to all web services

InternalMetadata

Returns a standardized metadata for an internal object.

The following routes are available for this service:
GET/{Workspace}/InternalMetadata/{ObjectType}
GET/{Workspace}/InternalMetadata/{ObjectType}/{SubObjectType}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Returns a standardized metadata for an internal object. 
    */
    public static class InternalMetadata
    {
        public String Workspace = null;
        public String ObjectType = null;
        public String SubObjectType = null;
        public ArrayList<MetadataItem> Items = null;
        
        public String getWorkspace() { return Workspace; }
        public InternalMetadata setWorkspace(String value) { this.Workspace = value; return this; }
        public String getObjectType() { return ObjectType; }
        public InternalMetadata setObjectType(String value) { this.ObjectType = value; return this; }
        public String getSubObjectType() { return SubObjectType; }
        public InternalMetadata setSubObjectType(String value) { this.SubObjectType = value; return this; }
        public ArrayList<MetadataItem> getItems() { return Items; }
        public InternalMetadata setItems(ArrayList<MetadataItem> value) { this.Items = value; return this; }
    }

    public static class MetadataItem
    {
        public String Name = null;
        public String Datatype = null;
        public String Length = null;
        public String Label = null;
        
        public String getName() { return Name; }
        public MetadataItem setName(String value) { this.Name = value; return this; }
        public String getDatatype() { return Datatype; }
        public MetadataItem setDatatype(String value) { this.Datatype = value; return this; }
        public String getLength() { return Length; }
        public MetadataItem setLength(String value) { this.Length = value; return this; }
        public String getLabel() { return Label; }
        public MetadataItem setLabel(String value) { this.Label = value; return this; }
    }

}

Java InternalMetadata DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /{Workspace}/InternalMetadata/{ObjectType} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json