| GET | /barcode_forced/{BasicAuth}/{MimeType}/{BarcodeType}/{BarcodeValue} | barcode |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Service de création de barcodes (OLD SCHOOL)
*/
@Api(Description="Service de création de barcodes (OLD SCHOOL)")
public static class barcode_forced
{
/**
* Basic Auth
*/
@ApiMember(DataType="string", Description="Basic Auth", IsRequired=true, Name="BasicAuth", ParameterType="query")
public String basicAuth = null;
/**
* mime-type
*/
@ApiMember(DataType="string", Description="mime-type", IsRequired=true, Name="MimeType", ParameterType="query")
public String mimeType = null;
/**
* 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 barcode barcode = null;
public String getBasicAuth() { return basicAuth; }
public barcode_forced setBasicAuth(String value) { this.basicAuth = value; return this; }
public String getMimeType() { return mimeType; }
public barcode_forced setMimeType(String value) { this.mimeType = value; return this; }
public eapi_barcode_type_enum getBarcodeType() { return barcodeType; }
public barcode_forced setBarcodeType(eapi_barcode_type_enum value) { this.barcodeType = value; return this; }
public String getBarcodeValue() { return barcodeValue; }
public barcode_forced setBarcodeValue(String value) { this.barcodeValue = value; return this; }
public barcode getBarcode() { return barcode; }
public barcode_forced setBarcode(barcode value) { this.barcode = value; return this; }
}
public static enum eapi_barcode_type_enum
{
Code39,
Ean13,
Qrcode;
}
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; }
}
}
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_forced/{BasicAuth}/{MimeType}/{BarcodeType}/{BarcodeValue} HTTP/1.1
Host: milliet.io
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{}