| GET, POST | /cl_info_tournee/{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 _info_tournee
Public Overridable Property id_operateur As String
Public Overridable Property id_tournee As String
Public Overridable Property date As String
Public Overridable Property latitude As Double
Public Overridable Property longitude As Double
Public Overridable Property aptitude As Integer
Public Overridable Property id_fin_tournee As String
Public Overridable Property kilometrage_depart As String
Public Overridable Property carburant_correct As Integer
Public Overridable Property ad_blue_allume As Integer
Public Overridable Property platform As String
Public Overridable Property brand As String
Public Overridable Property model As String
Public Overridable Property release As String
Public Overridable Property sdk As String
Public Overridable Property app_version As String
End Class
Public Partial Class cl_info_tourneeRequest
Public Sub New()
infos_tournees = New List(Of _info_tournee)
End Sub
Public Overridable Property id_operateur As String
Public Overridable Property id_tournee As String
Public Overridable Property infos_tournees As List(Of _info_tournee)
End Class
Public Partial Class cl_info_tourneeResponse
Public Sub New()
infos_tournees = New List(Of _info_tournee)
End Sub
Public Overridable Property id_operateur As String
Public Overridable Property id_tournee As String
Public Overridable Property infos_tournees As List(Of _info_tournee)
End Class
End Namespace
End Namespace
VB.NET cl_info_tourneeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cl_info_tournee/{id_operateur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","infos_tournees":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"aptitude":0,"id_fin_tournee":"String","kilometrage_depart":"String","carburant_correct":0,"ad_blue_allume":0,"platform":"String","brand":"String","model":"String","release":"String","sdk":"String","app_version":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","infos_tournees":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"aptitude":0,"id_fin_tournee":"String","kilometrage_depart":"String","carburant_correct":0,"ad_blue_allume":0,"platform":"String","brand":"String","model":"String","release":"String","sdk":"String","app_version":"String"}]}