| GET, OPTIONS | /v1/LineAnswers/{CustomerCheckInId} | ||
|---|---|---|---|
| POST,PUT,DELETE,OPTIONS | /v1/LineAnswers |
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 LineAnswer
Public Overridable Property Id As Integer
Public Overridable Property CustomerCheckInId As Guid
Public Overridable Property LineQuestionId As Integer
Public Overridable Property Question As String
Public Overridable Property Answer As String
End Class
Public Partial Class LineAnswersRequest
Public Overridable Property LineAnswers As List(Of LineAnswer) = New List(Of LineAnswer)
Public Overridable Property CustomerCheckInId As Guid?
End Class
Public Partial Class LineQuestion
Public Overridable Property Id As Integer
Public Overridable Property CustomerCheckInId As Guid
Public Overridable Property LineId As Guid
Public Overridable Property Question As String
Public Overridable Property Answer As String
Public Overridable Property Active As Boolean
End Class
Public Partial Class LineQuestionsResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property LineQuestions As List(Of LineQuestion) = New List(Of LineQuestion)
End Class
End Namespace
End Namespace
VB.NET LineAnswersRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/LineAnswers HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"LineAnswers":[{"Id":0,"CustomerCheckInId":"00000000000000000000000000000000","LineQuestionId":0,"Question":"String","Answer":"String"}],"CustomerCheckInId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"LineQuestions":[{"Id":0,"CustomerCheckInId":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","Question":"String","Answer":"String","Active":false}]}