| GET,OPTIONS | /v1/forms/office |
|---|
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
Public Partial Class FormInboxCount
Public Overridable Property V As String
Public Overridable Property L As String
Public Overridable Property N As Integer
End Class
Public Partial Class FormOfficeApp
Public Overridable Property FormUID As String
Public Overridable Property Name As String
Public Overridable Property Noun As String
Public Overridable Property DefaultBranchId As String
End Class
Public Partial Class FormOfficeDraftRow
Public Overridable Property SubmissionUID As String
Public Overridable Property FormUID As String
Public Overridable Property FormName As String
Public Overridable Property ForName As String
Public Overridable Property BranchName As String
Public Overridable Property ContactId As Integer?
Public Overridable Property Page As Integer
Public Overridable Property Pages As Integer
Public Overridable Property SavedBy As String
Public Overridable Property SavedAt As String
End Class
Public Partial Class FormOfficeOfferedRequest
Public Overridable Property FormUID As Guid?
End Class
Public Partial Class FormOfficeOfferedResponse
Public Overridable Property Apps As List(Of FormOfficeApp) = New List(Of FormOfficeApp)
Public Overridable Property Branches As List(Of FormInboxCount) = New List(Of FormInboxCount)
Public Overridable Property Drafts As List(Of FormOfficeDraftRow) = New List(Of FormOfficeDraftRow)
Public Overridable Property CanSearchContacts As Boolean
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET FormOfficeOfferedRequest 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.
GET /v1/forms/office HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Apps":[{"FormUID":"String","Name":"String","Noun":"String","DefaultBranchId":"String"}],"Branches":[{"V":"String","L":"String","N":0}],"Drafts":[{"SubmissionUID":"String","FormUID":"String","FormName":"String","ForName":"String","BranchName":"String","ContactId":0,"Page":0,"Pages":0,"SavedBy":"String","SavedAt":"String"}],"CanSearchContacts":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}