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}
namespace Field2Office.API.Model.Integration

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type MetadataItem() = 
        member val Name:String = null with get,set
        member val Datatype:String = null with get,set
        member val Length:String = null with get,set
        member val Label:String = null with get,set

    ///<summary>
    ///Returns a standardized metadata for an internal object. 
    ///</summary>
    [<AllowNullLiteral>]
    type InternalMetadata() = 
        member val Workspace:String = null with get,set
        member val ObjectType:String = null with get,set
        member val SubObjectType:String = null with get,set
        member val Items:ResizeArray<MetadataItem> = new ResizeArray<MetadataItem>() with get,set

F# 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