| GET,OPTIONS | /v1/projects/{ProjectID}/submittals |
|---|
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 Submittal
Public Overridable Property SubmittalID As Integer
Public Overridable Property SubmittalUID As Guid
Public Overridable Property ProjectID As Integer
Public Overridable Property SubmittalNo As String
Public Overridable Property SpecSection As String
Public Overridable Property Title As String
Public Overridable Property SubType As String
Public Overridable Property Rev As Integer
Public Overridable Property BallInCourt As String
Public Overridable Property Status As String
Public Overridable Property DueDate As Date?
Public Overridable Property SubmittedDate As Date?
Public Overridable Property DecidedDate As Date?
Public Overridable Property Notes As String
Public Overridable Property CreatedBy As String
Public Overridable Property CreatedAt As Date?
Public Overridable Property UpdatedAt As Date?
Public Overridable Property IsOverdue As Boolean
End Class
Public Partial Class SubmittalListRequest
Public Overridable Property ProjectID As Integer
End Class
Public Partial Class SubmittalListResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property ProjectID As Integer
Public Overridable Property Submittals As List(Of Submittal) = New List(Of Submittal)
End Class
End Namespace
End Namespace
VB.NET SubmittalListRequest 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/projects/{ProjectID}/submittals HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Submittals":[{"SubmittalID":0,"SubmittalUID":"00000000000000000000000000000000","ProjectID":0,"SubmittalNo":"String","SpecSection":"String","Title":"String","SubType":"String","Rev":0,"BallInCourt":"String","Status":"String","DueDate":"0001-01-01T00:00:00.0000000","SubmittedDate":"0001-01-01T00:00:00.0000000","DecidedDate":"0001-01-01T00:00:00.0000000","Notes":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","IsOverdue":false}]}