| GET,OPTIONS | /v1/projects/{ProjectID}/material-shortfalls |
|---|
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 MaterialShortfall
Public Overridable Property MaterialID As Integer
Public Overridable Property Name As String
Public Overridable Property MaterialType As String
Public Overridable Property OnHand As Decimal
Public Overridable Property QtyNeeded As Decimal
Public Overridable Property ShortQty As Decimal
Public Overridable Property Unit As String
Public Overridable Property UnitPrice As Decimal
Public Overridable Property EstUSD As Decimal
Public Overridable Property Vendor As String
Public Overridable Property JobStartDate As Date?
End Class
Public Partial Class MaterialShortfallsRequest
Public Overridable Property ProjectID As Integer
End Class
Public Partial Class MaterialShortfallsResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property ProjectID As Integer
Public Overridable Property Shortfalls As List(Of MaterialShortfall) = New List(Of MaterialShortfall)
End Class
End Namespace
End Namespace
VB.NET MaterialShortfallsRequest 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}/material-shortfalls 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,"Shortfalls":[{"MaterialID":0,"Name":"String","MaterialType":"String","OnHand":0,"QtyNeeded":0,"ShortQty":0,"Unit":"String","UnitPrice":0,"EstUSD":0,"Vendor":"String","JobStartDate":"0001-01-01T00:00:00.0000000"}]}