| POST,OPTIONS | /v1/markup/{AttachmentId}/{VersionNo}/{PageIndex}/shapes/{ShapeId}/{Raise} |
|---|
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 DocumentMarkupLink
Public Overridable Property DocumentMarkupLinkID As Integer
Public Overridable Property AttachmentId As Guid
Public Overridable Property VersionNo As Integer
Public Overridable Property PageIndex As Integer
Public Overridable Property ShapeId As String
Public Overridable Property EntityType As String
Public Overridable Property EntityID As Integer
Public Overridable Property EntityNo As String
Public Overridable Property CreatedBy As String
Public Overridable Property CreatedAt As Date?
End Class
Public Partial Class MarkupRaiseRequest
Public Overridable Property AttachmentId As Guid
Public Overridable Property VersionNo As Integer
Public Overridable Property PageIndex As Integer
Public Overridable Property ShapeId As String
Public Overridable Property Raise As String
Public Overridable Property ProjectID As Integer?
Public Overridable Property Title As String
Public Overridable Property Description As String
Public Overridable Property Area As String
Public Overridable Property Trade As String
Public Overridable Property AssignedSub As String
Public Overridable Property Priority As String
Public Overridable Property AskedOf As String
Public Overridable Property Discipline As String
Public Overridable Property DueDate As Date?
End Class
Public Partial Class MarkupRaiseResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Link As DocumentMarkupLink
Public Overridable Property Links As List(Of DocumentMarkupLink) = New List(Of DocumentMarkupLink)
End Class
End Namespace
End Namespace
VB.NET MarkupRaiseRequest 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.
POST /v1/markup/{AttachmentId}/{VersionNo}/{PageIndex}/shapes/{ShapeId}/{Raise} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
AttachmentId: 00000000000000000000000000000000,
VersionNo: 0,
PageIndex: 0,
ShapeId: String,
Raise: String,
ProjectID: 0,
Title: String,
Description: String,
Area: String,
Trade: String,
AssignedSub: String,
Priority: String,
AskedOf: String,
Discipline: String,
DueDate: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Link:
{
DocumentMarkupLinkID: 0,
AttachmentId: 00000000000000000000000000000000,
VersionNo: 0,
PageIndex: 0,
ShapeId: String,
EntityType: String,
EntityID: 0,
EntityNo: String,
CreatedBy: String,
CreatedAt: 0001-01-01
},
Links:
[
{
DocumentMarkupLinkID: 0,
AttachmentId: 00000000000000000000000000000000,
VersionNo: 0,
PageIndex: 0,
ShapeId: String,
EntityType: String,
EntityID: 0,
EntityNo: String,
CreatedBy: String,
CreatedAt: 0001-01-01
}
]
}