| GET, POST | /cl_messagerie/{id_operateur}/{id_tournee} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CL_WS
Namespace Global
Namespace CL_WS
Public Partial Class _messagerie
Public Overridable Property id_operateur As String
Public Overridable Property id_tournee As String
Public Overridable Property id_message As String
Public Overridable Property date As String
Public Overridable Property latitude As Double
Public Overridable Property longitude As Double
Public Overridable Property message As String
Public Overridable Property photo As String
End Class
Public Partial Class cl_messagerieRequest
Public Sub New()
messages = New List(Of _messagerie)
End Sub
Public Overridable Property id_operateur As String
Public Overridable Property id_tournee As String
Public Overridable Property messages As List(Of _messagerie)
End Class
Public Partial Class cl_messagerieResponse
Public Sub New()
messages = New List(Of _messagerie)
End Sub
Public Overridable Property id_operateur As String
Public Overridable Property id_tournee As String
Public Overridable Property messages As List(Of _messagerie)
End Class
End Namespace
End Namespace
VB.NET cl_messagerieRequest 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 /cl_messagerie/{id_operateur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id_operateur":"String","id_tournee":"String","messages":[{"id_operateur":"String","id_tournee":"String","id_message":"String","date":"String","latitude":0,"longitude":0,"message":"String","photo":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_operateur":"String","id_tournee":"String","messages":[{"id_operateur":"String","id_tournee":"String","id_message":"String","date":"String","latitude":0,"longitude":0,"message":"String","photo":"String"}]}