| GET,POST,PUT,DELETE,OPTIONS | /v1/ProjectMilestones/{MilestoneID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/ProjectMilestones |
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 ProjectMilestone
Public Overridable Property MilestoneID As Integer
Public Overridable Property ProjectID As Integer
Public Overridable Property MilestoneName As String
Public Overridable Property TargetDate As Date
Public Overridable Property ActualDate As Date
Public Overridable Property MilestoneStatus As String
End Class
Public Partial Class ProjectMilestonesRequest
Public Overridable Property MilestoneID As Integer
Public Overridable Property ProjectMilestones As List(Of ProjectMilestone) = New List(Of ProjectMilestone)
End Class
Public Partial Class ProjectMilestonesResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property ProjectMilestones As List(Of ProjectMilestone) = New List(Of ProjectMilestone)
End Class
End Namespace
End Namespace
VB.NET ProjectMilestonesRequest 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.
POST /v1/ProjectMilestones/{MilestoneID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"MilestoneID":0,"ProjectMilestones":[{"MilestoneID":0,"ProjectID":0,"MilestoneName":"String","TargetDate":"0001-01-01T00:00:00.0000000","ActualDate":"0001-01-01T00:00:00.0000000","MilestoneStatus":"String"}]}
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"}},"ProjectMilestones":[{"MilestoneID":0,"ProjectID":0,"MilestoneName":"String","TargetDate":"0001-01-01T00:00:00.0000000","ActualDate":"0001-01-01T00:00:00.0000000","MilestoneStatus":"String"}]}