| GET,OPTIONS | /v1/ReportManager/api/Objects/{Table}/fields |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
<DataContract>
Public Partial Class ReportManagerObject
Implements IReportManagerDocument
<DataMember(Name:="id")>
Public Overridable Property ID As String
<DataMember(Name:="name")>
Public Overridable Property Name As String
<DataMember(Name:="data")>
Public Overridable Property Fields As List(Of ReportManagerObjectData) = New List(Of ReportManagerObjectData)
<DataMember(Name:="refs")>
Public Overridable Property References As List(Of ReportManagerObjectRef) = New List(Of ReportManagerObjectRef)
End Class
<DataContract>
Public Partial Class ReportManagerObjectData
<DataMember(Name:="id")>
Public Overridable Property ID As String
<DataMember(Name:="name")>
Public Overridable Property Name As String
<DataMember(Name:="filter")>
Public Overridable Property Filter As Boolean
<DataMember(Name:="edit")>
Public Overridable Property Edit As Boolean
<DataMember(Name:="type")>
Public Overridable Property TypeName As String
<DataMember(Name:="ref")>
Public Overridable Property Ref As String
<DataMember(Name:="key")>
Public Overridable Property IsKey As Boolean
<DataMember(Name:="show")>
Public Overridable Property IsLabel As Boolean
End Class
Public Partial Class ReportManagerObjectFieldsRequest
Inherits ReportManagerRequest(Of ReportManagerObject)
Public Overridable Property Table As String
End Class
<DataContract>
Public Partial Class ReportManagerObjectRef
<DataMember(Name:="id")>
Public Overridable Property ID As Integer
<DataMember(Name:="target")>
Public Overridable Property Target As String
<DataMember(Name:="source")>
Public Overridable Property Source As String
<DataMember(Name:="name")>
Public Overridable Property Name As String
End Class
Public Partial Class ReportManagerRequest(Of T)
End Class
End Namespace
End Namespace
VB.NET ReportManagerObjectFieldsRequest DTOs
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/ReportManager/api/Objects/{Table}/fields HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
[
{
id: String,
name: String,
data:
[
{
id: String,
name: String,
filter: False,
edit: False,
type: String,
ref: String,
key: False,
show: False
}
],
refs:
[
{
id: 0,
target: String,
source: String,
name: String
}
]
}
]