[DEV] update new model
This commit is contained in:
parent
530d254bf2
commit
15a7814a3b
@ -485,8 +485,13 @@ public class DataFactoryTsApi {
|
|||||||
} else if (MediaType.MULTIPART_FORM_DATA.equals(elem)) {
|
} else if (MediaType.MULTIPART_FORM_DATA.equals(elem)) {
|
||||||
builder.append("\n\t\t\t\tcontentType: HTTPMimeType.MULTIPART,");
|
builder.append("\n\t\t\t\tcontentType: HTTPMimeType.MULTIPART,");
|
||||||
break;
|
break;
|
||||||
|
} else if (MediaType.TEXT_PLAIN.equals(elem)) {
|
||||||
|
builder.append("\n\t\t\t\tcontentType: HTTPMimeType.TEXT_PLAIN,");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if ("DELETE".equals(methodType)) {
|
||||||
|
builder.append("\n\t\t\t\tcontentType: HTTPMimeType.TEXT_PLAIN,");
|
||||||
}
|
}
|
||||||
if (produces != null) {
|
if (produces != null) {
|
||||||
if (produces.size() > 1) {
|
if (produces.size() > 1) {
|
||||||
|
@ -15,13 +15,14 @@ export enum HTTPRequestModel {
|
|||||||
}
|
}
|
||||||
export enum HTTPMimeType {
|
export enum HTTPMimeType {
|
||||||
ALL = '*/*',
|
ALL = '*/*',
|
||||||
|
CSV = 'text/csv',
|
||||||
IMAGE = 'image/*',
|
IMAGE = 'image/*',
|
||||||
IMAGE_JPEG = 'image/jpeg',
|
IMAGE_JPEG = 'image/jpeg',
|
||||||
IMAGE_PNG = 'image/png',
|
IMAGE_PNG = 'image/png',
|
||||||
JSON = 'application/json',
|
JSON = 'application/json',
|
||||||
OCTET_STREAM = 'application/octet-stream',
|
|
||||||
MULTIPART = 'multipart/form-data',
|
MULTIPART = 'multipart/form-data',
|
||||||
CSV = 'text/csv',
|
OCTET_STREAM = 'application/octet-stream',
|
||||||
|
TEXT_PLAIN = 'text/plain',
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RESTConfig {
|
export interface RESTConfig {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user