[DEV] update new model

This commit is contained in:
Edouard DUPIN 2024-03-19 08:37:07 +01:00
parent 530d254bf2
commit 15a7814a3b
2 changed files with 8 additions and 2 deletions

View File

@ -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) {

View File

@ -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 {