| GET | /recherche/{mode}/{search} |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CL_WS;
namespace CL_WS
{
public partial class _recherche
{
public virtual int id { get; set; }
public virtual string libelle { get; set; }
public virtual string barcode { get; set; }
public virtual int barcode_match { get; set; }
}
public partial class rechercheRequest
{
public virtual string mode { get; set; }
public virtual string search { get; set; }
}
public partial class rechercheResponse
{
public rechercheResponse()
{
results = new List<_recherche>{};
}
public virtual string mode { get; set; }
public virtual string search { get; set; }
public virtual List<_recherche> results { get; set; }
}
}
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.
GET /recherche/{mode}/{search} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"mode":"String","search":"String","results":[{"id":0,"libelle":"String","barcode":"String","barcode_match":0}]}