[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)) {
|
||||
builder.append("\n\t\t\t\tcontentType: HTTPMimeType.MULTIPART,");
|
||||
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.size() > 1) {
|
||||
|
@ -15,13 +15,14 @@ export enum HTTPRequestModel {
|
||||
}
|
||||
export enum HTTPMimeType {
|
||||
ALL = '*/*',
|
||||
CSV = 'text/csv',
|
||||
IMAGE = 'image/*',
|
||||
IMAGE_JPEG = 'image/jpeg',
|
||||
IMAGE_PNG = 'image/png',
|
||||
JSON = 'application/json',
|
||||
OCTET_STREAM = 'application/octet-stream',
|
||||
MULTIPART = 'multipart/form-data',
|
||||
CSV = 'text/csv',
|
||||
OCTET_STREAM = 'application/octet-stream',
|
||||
TEXT_PLAIN = 'text/plain',
|
||||
}
|
||||
|
||||
export interface RESTConfig {
|
||||
|
Loading…
x
Reference in New Issue
Block a user