| GET, POST | /cr_materiel/{id_controleur}/{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 _cr_materiel
Public Overridable Property id_controleur As String
Public Overridable Property id_tournee As String
Public Overridable Property id_materiel As String
Public Overridable Property depart As Integer
Public Overridable Property type_materiel As String
Public Overridable Property quantite_depart As Integer
Public Overridable Property quantite As Integer
Public Overridable Property date As String
End Class
Public Partial Class cr_materielRequest
Public Sub New()
cr_materiels = New List(Of _cr_materiel)
End Sub
Public Overridable Property id_controleur As String
Public Overridable Property id_tournee As String
Public Overridable Property cr_materiels As List(Of _cr_materiel)
End Class
Public Partial Class cr_materielResponse
Public Sub New()
cr_materiels = New List(Of _cr_materiel)
End Sub
Public Overridable Property id_controleur As String
Public Overridable Property id_tournee As String
Public Overridable Property cr_materiels As List(Of _cr_materiel)
End Class
End Namespace
End Namespace
VB.NET cr_materielRequest 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 /cr_materiel/{id_controleur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_materiels":[{"id_controleur":"String","id_tournee":"String","id_materiel":"String","depart":0,"type_materiel":"String","quantite_depart":0,"quantite":0,"date":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_materiels":[{"id_controleur":"String","id_tournee":"String","id_materiel":"String","depart":0,"type_materiel":"String","quantite_depart":0,"quantite":0,"date":"String"}]}