| GET, POST | /cr_commande/{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_commande
Public Sub New()
lignes = New List(Of _cr_commande_ligne)
End Sub
Public Overridable Property id_controleur As String
Public Overridable Property id_tournee As String
Public Overridable Property num_facture As String
Public Overridable Property commentaire As String
Public Overridable Property regroupee As Integer
Public Overridable Property date As String
Public Overridable Property lignes As List(Of _cr_commande_ligne)
End Class
Public Partial Class _cr_commande_ligne
Public Overridable Property id_controleur As String
Public Overridable Property id_tournee As String
Public Overridable Property num_facture As String
Public Overridable Property line_id As Integer
Public Overridable Property article_id As Integer
Public Overridable Property quantite As Integer
Public Overridable Property date As String
Public Overridable Property qte_uv As String
Public Overridable Property qte_uc As String
Public Overridable Property cdt_uc As String
Public Overridable Property _qte_uv As Nullable(Of Double)
Public Overridable Property _qte_uc As Nullable(Of Double)
Public Overridable Property _cdt_uc As Nullable(Of Double)
End Class
Public Partial Class cr_commandeRequest
Public Sub New()
cr_commandes = New List(Of _cr_commande)
End Sub
Public Overridable Property id_controleur As String
Public Overridable Property id_tournee As String
Public Overridable Property cr_commandes As List(Of _cr_commande)
End Class
Public Partial Class cr_commandeResponse
Public Sub New()
cr_commandes = New List(Of _cr_commande)
End Sub
Public Overridable Property id_controleur As String
Public Overridable Property id_tournee As String
Public Overridable Property cr_commandes As List(Of _cr_commande)
End Class
End Namespace
End Namespace
VB.NET cr_commandeRequest 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 /cr_commande/{id_controleur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_commandes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","commentaire":"String","regroupee":0,"date":"String","lignes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","line_id":0,"article_id":0,"quantite":0,"date":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_commandes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","commentaire":"String","regroupee":0,"date":"String","lignes":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","line_id":0,"article_id":0,"quantite":0,"date":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}]}