| GET, POST | /cr_photo/{id_cr}/{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_photo
Public Overridable Property id_cr As String
Public Overridable Property id_tournee As String
Public Overridable Property num_facture As String
Public Overridable Property type As Integer
Public Overridable Property index As Integer
Public Overridable Property path As String
Public Overridable Property photo As String
Public Overridable Property photo_light As String
Public Overridable Property date As String
Public Overridable Property latitude As Double
Public Overridable Property longitude As Double
End Class
Public Partial Class cr_photoRequest
Public Sub New()
multi_photos = New List(Of _cr_photo)
End Sub
Public Overridable Property id_cr As String
Public Overridable Property id_tournee As String
Public Overridable Property multi_photos As List(Of _cr_photo)
End Class
Public Partial Class cr_photoResponse
Public Sub New()
multi_photos = New List(Of _cr_photo)
End Sub
Public Overridable Property id_cr As String
Public Overridable Property id_tournee As String
Public Overridable Property multi_photos As List(Of _cr_photo)
End Class
End Namespace
End Namespace
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_photo/{id_cr}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id_cr":"String","id_tournee":"String","multi_photos":[{"id_cr":"String","id_tournee":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_cr":"String","id_tournee":"String","multi_photos":[{"id_cr":"String","id_tournee":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}