| 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
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}/InternalMetadata/{ObjectType} HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml