| GET | /barcode/{BarcodeType}/{BarcodeValue} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class barcode
{
/**
* barcode type
*/
@ApiMember(DataType="string", Description="barcode type", IsRequired=true, Name="BarcodeType", ParameterType="query")
public eapi_barcode_type_enum barcodeType = null;
/**
* barcode value
*/
@ApiMember(DataType="string", Description="barcode value", IsRequired=true, Name="BarcodeValue", ParameterType="query")
public String barcodeValue = null;
public eapi_barcode_type_enum getBarcodeType() { return barcodeType; }
public barcode setBarcodeType(eapi_barcode_type_enum value) { this.barcodeType = value; return this; }
public String getBarcodeValue() { return barcodeValue; }
public barcode setBarcodeValue(String value) { this.barcodeValue = value; return this; }
}
public static enum eapi_barcode_type_enum
{
Code39,
Ean13,
Qrcode;
}
}
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 /barcode/{BarcodeType}/{BarcodeValue} HTTP/1.1
Host: milliet.io
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{}