CL$WS Host : D5239-staging-cl

<back to all web services

cr_photoRequest

The following routes are available for this service:
GET, POST/cr_photo/{id_cr}/{id_tournee}
namespace CL_WS

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type _cr_photo() = 
        member val id_cr:String = null with get,set
        member val id_tournee:String = null with get,set
        member val num_facture:String = null with get,set
        member val type:Int32 = new Int32() with get,set
        member val index:Int32 = new Int32() with get,set
        member val path:String = null with get,set
        member val photo:String = null with get,set
        member val photo_light:String = null with get,set
        member val date:String = null with get,set
        member val latitude:Double = new Double() with get,set
        member val longitude:Double = new Double() with get,set

    [<AllowNullLiteral>]
    type cr_photoResponse() = 
        member val id_cr:String = null with get,set
        member val id_tournee:String = null with get,set
        member val multi_photos:ResizeArray<_cr_photo> = new ResizeArray<_cr_photo>() with get,set

    [<AllowNullLiteral>]
    type cr_photoRequest() = 
        member val id_cr:String = null with get,set
        member val id_tournee:String = null with get,set
        member val multi_photos:ResizeArray<_cr_photo> = new ResizeArray<_cr_photo>() with get,set

F# cr_photoRequest 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

HTTP + JSON

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: application/json
Content-Type: application/json
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: application/json
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}]}