| GET,POST,PUT,DELETE,OPTIONS | /v1/BusinessCardType/{BusinessCardTypeId} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/BusinessCardType |
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.Routes
Imports CRM.AgencyPlatform.API.Internal.Objects
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal.Objects
Public Partial Class BusinessCardType
Public Overridable Property BusinessCardTypeId As Integer
Public Overridable Property Name As String
Public Overridable Property Description As String
Public Overridable Property IsBack As Boolean
End Class
End Namespace
Namespace CRM.AgencyPlatform.API.Internal.Routes
Public Partial Class BusinessCardTypeRequest
Public Overridable Property BusinessCardType As List(Of BusinessCardType) = New List(Of BusinessCardType)
End Class
Public Partial Class BusinessCardTypeResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property BusinessCardType As List(Of BusinessCardType) = New List(Of BusinessCardType)
End Class
End Namespace
End Namespace
VB.NET BusinessCardTypeRequest 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/BusinessCardType/{BusinessCardTypeId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"BusinessCardType":[{"BusinessCardTypeId":0,"Name":"String","Description":"String","IsBack":false}]}
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"}},"BusinessCardType":[{"BusinessCardTypeId":0,"Name":"String","Description":"String","IsBack":false}]}