http api refactor
This commit is contained in:
parent
e064646dc9
commit
8199b565e1
@ -157,9 +157,9 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/${encodeURIComponent(
|
`${this.basePath}/dictionary/${encodeURIComponent(String(type))}/${encodeURIComponent(
|
||||||
String(type)
|
String(dossierTemplateId)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
)}`,
|
||||||
{
|
{
|
||||||
body: body,
|
body: body,
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
@ -239,18 +239,14 @@ export class DictionaryControllerService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>('post', `${this.basePath}/dictionary/type`, {
|
||||||
'post',
|
body: body,
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/type`,
|
params: queryParameters,
|
||||||
{
|
withCredentials: this.configuration.withCredentials,
|
||||||
body: body,
|
headers: headers,
|
||||||
params: queryParameters,
|
observe: observe,
|
||||||
withCredentials: this.configuration.withCredentials,
|
reportProgress: reportProgress
|
||||||
headers: headers,
|
});
|
||||||
observe: observe,
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -347,7 +343,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/delete/${encodeURIComponent(
|
`${this.basePath}/dictionary/delete/${encodeURIComponent(
|
||||||
String(type)
|
String(type)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
@ -447,11 +443,9 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'delete',
|
'delete',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/${encodeURIComponent(
|
`${this.basePath}/dictionary/${encodeURIComponent(String(type))}/${encodeURIComponent(
|
||||||
String(type)
|
String(dossierTemplateId)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}/${encodeURIComponent(
|
)}/${encodeURIComponent(String(entry))}`,
|
||||||
String(entry)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
@ -537,7 +531,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'delete',
|
'delete',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/type/${encodeURIComponent(
|
`${this.basePath}/dictionary/type/${encodeURIComponent(
|
||||||
String(type)
|
String(type)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
@ -625,7 +619,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/download/${encodeURIComponent(
|
`${this.basePath}/dictionary/download/${encodeURIComponent(
|
||||||
String(type)
|
String(type)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
@ -702,9 +696,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<TypeResponse>(
|
return this.httpClient.request<TypeResponse>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/type/${encodeURIComponent(
|
`${this.basePath}/dictionary/type/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
@ -769,9 +761,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<Colors>(
|
return this.httpClient.request<Colors>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/color/${encodeURIComponent(
|
`${this.basePath}/color/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -856,9 +846,9 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<Dictionary>(
|
return this.httpClient.request<Dictionary>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/${encodeURIComponent(
|
`${this.basePath}/dictionary/${encodeURIComponent(String(type))}/${encodeURIComponent(
|
||||||
String(type)
|
String(dossierTemplateId)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
)}`,
|
||||||
{
|
{
|
||||||
params: queryParameters,
|
params: queryParameters,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
@ -942,9 +932,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/color/${encodeURIComponent(
|
`${this.basePath}/color/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
body: body,
|
body: body,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
@ -1049,7 +1037,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/type/${encodeURIComponent(
|
`${this.basePath}/dictionary/type/${encodeURIComponent(
|
||||||
String(type)
|
String(type)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
@ -1162,7 +1150,7 @@ export class DictionaryControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/dictionary/upload/${encodeURIComponent(
|
`${this.basePath}/dictionary/upload/${encodeURIComponent(
|
||||||
String(type)
|
String(type)
|
||||||
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
)}/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@ -80,16 +80,12 @@ export class DigitalSignatureControllerService {
|
|||||||
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>('delete', `${this.basePath}/digital-signature`, {
|
||||||
'delete',
|
withCredentials: this.configuration.withCredentials,
|
||||||
`${this.basePath}/redaction-gateway-v1/digital-signature`,
|
headers: headers,
|
||||||
{
|
observe: observe,
|
||||||
withCredentials: this.configuration.withCredentials,
|
reportProgress: reportProgress
|
||||||
headers: headers,
|
});
|
||||||
observe: observe,
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -135,7 +131,7 @@ export class DigitalSignatureControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<DigitalSignatureViewModelRes>(
|
return this.httpClient.request<DigitalSignatureViewModelRes>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/digital-signature`,
|
`${this.basePath}/digital-signature`,
|
||||||
{
|
{
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -207,7 +203,7 @@ export class DigitalSignatureControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<DigitalSignatureViewModelRes>(
|
return this.httpClient.request<DigitalSignatureViewModelRes>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/digital-signature`,
|
`${this.basePath}/digital-signature`,
|
||||||
{
|
{
|
||||||
body: body,
|
body: body,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
@ -278,16 +274,12 @@ export class DigitalSignatureControllerService {
|
|||||||
headers = headers.set('Content-Type', httpContentTypeSelected);
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>('put', `${this.basePath}/digital-signature`, {
|
||||||
'put',
|
body: body,
|
||||||
`${this.basePath}/redaction-gateway-v1/digital-signature`,
|
withCredentials: this.configuration.withCredentials,
|
||||||
{
|
headers: headers,
|
||||||
body: body,
|
observe: observe,
|
||||||
withCredentials: this.configuration.withCredentials,
|
reportProgress: reportProgress
|
||||||
headers: headers,
|
});
|
||||||
observe: observe,
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -107,9 +107,7 @@ export class FileAttributesControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'delete',
|
'delete',
|
||||||
`${
|
`${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent(
|
||||||
this.basePath
|
|
||||||
}/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent(
|
|
||||||
String(dossierTemplateId)
|
String(dossierTemplateId)
|
||||||
)}/${encodeURIComponent(String(fileAttributeId))}`,
|
)}/${encodeURIComponent(String(fileAttributeId))}`,
|
||||||
{
|
{
|
||||||
@ -194,9 +192,7 @@ export class FileAttributesControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${
|
`${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent(
|
||||||
this.basePath
|
|
||||||
}/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent(
|
|
||||||
String(dossierTemplateId)
|
String(dossierTemplateId)
|
||||||
)}/delete`,
|
)}/delete`,
|
||||||
{
|
{
|
||||||
@ -263,7 +259,7 @@ export class FileAttributesControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<FileAttributesConfig>(
|
return this.httpClient.request<FileAttributesConfig>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/fileAttributes/config/${encodeURIComponent(
|
`${this.basePath}/fileAttributes/config/${encodeURIComponent(
|
||||||
String(dossierTemplateId)
|
String(dossierTemplateId)
|
||||||
)}`,
|
)}`,
|
||||||
{
|
{
|
||||||
@ -359,7 +355,7 @@ export class FileAttributesControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/fileAttributes/set/${encodeURIComponent(
|
`${this.basePath}/fileAttributes/set/${encodeURIComponent(
|
||||||
String(dossierId)
|
String(dossierId)
|
||||||
)}/${encodeURIComponent(String(fileId))}`,
|
)}/${encodeURIComponent(String(fileId))}`,
|
||||||
{
|
{
|
||||||
@ -445,9 +441,7 @@ export class FileAttributesControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<FileAttributesConfig>(
|
return this.httpClient.request<FileAttributesConfig>(
|
||||||
'put',
|
'put',
|
||||||
`${
|
`${this.basePath}/fileAttributes/config/baseConfig/${encodeURIComponent(
|
||||||
this.basePath
|
|
||||||
}/redaction-gateway-v1/fileAttributes/config/baseConfig/${encodeURIComponent(
|
|
||||||
String(dossierTemplateId)
|
String(dossierTemplateId)
|
||||||
)}`,
|
)}`,
|
||||||
{
|
{
|
||||||
@ -533,9 +527,7 @@ export class FileAttributesControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<FileAttributeConfig>(
|
return this.httpClient.request<FileAttributeConfig>(
|
||||||
'post',
|
'post',
|
||||||
`${
|
`${this.basePath}/fileAttributes/config/fileAttribute/${encodeURIComponent(
|
||||||
this.basePath
|
|
||||||
}/redaction-gateway-v1/fileAttributes/config/fileAttribute/${encodeURIComponent(
|
|
||||||
String(dossierTemplateId)
|
String(dossierTemplateId)
|
||||||
)}`,
|
)}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@ -104,9 +104,9 @@ export class FileManagementControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'delete',
|
'delete',
|
||||||
`${this.basePath}/redaction-gateway-v1/delete/${encodeURIComponent(
|
`${this.basePath}/delete/${encodeURIComponent(String(dossierId))}/${encodeURIComponent(
|
||||||
String(dossierId)
|
String(fileId)
|
||||||
)}/${encodeURIComponent(String(fileId))}`,
|
)}`,
|
||||||
{
|
{
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -189,7 +189,7 @@ export class FileManagementControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/delete/${encodeURIComponent(String(dossierId))}`,
|
`${this.basePath}/delete/${encodeURIComponent(String(dossierId))}`,
|
||||||
{
|
{
|
||||||
body: body,
|
body: body,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
@ -275,7 +275,7 @@ export class FileManagementControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/download/annotated/${encodeURIComponent(
|
`${this.basePath}/download/annotated/${encodeURIComponent(
|
||||||
String(dossierId)
|
String(dossierId)
|
||||||
)}/${encodeURIComponent(String(fileId))}`,
|
)}/${encodeURIComponent(String(fileId))}`,
|
||||||
{
|
{
|
||||||
|
|||||||
@ -120,7 +120,7 @@ export class ReportTemplateControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'delete',
|
'delete',
|
||||||
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
|
`${this.basePath}/templateUpload/${encodeURIComponent(
|
||||||
String(dossierTemplateId)
|
String(dossierTemplateId)
|
||||||
)}/${encodeURIComponent(String(templateId))}`,
|
)}/${encodeURIComponent(String(templateId))}`,
|
||||||
{
|
{
|
||||||
@ -197,7 +197,7 @@ export class ReportTemplateControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
|
`${this.basePath}/templateUpload/${encodeURIComponent(
|
||||||
String(dossierTemplateId)
|
String(dossierTemplateId)
|
||||||
)}/${encodeURIComponent(String(templateId))}`,
|
)}/${encodeURIComponent(String(templateId))}`,
|
||||||
{
|
{
|
||||||
@ -263,9 +263,7 @@ export class ReportTemplateControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<Array<ReportTemplate>>(
|
return this.httpClient.request<Array<ReportTemplate>>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
|
`${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -355,9 +353,7 @@ export class ReportTemplateControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<ReportTemplate>(
|
return this.httpClient.request<ReportTemplate>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/templateUpload/${encodeURIComponent(
|
`${this.basePath}/templateUpload/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
|
|||||||
@ -135,7 +135,7 @@ export class UploadControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<FileUploadResult>(
|
return this.httpClient.request<FileUploadResult>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/upload/${encodeURIComponent(String(dossierId))}`,
|
`${this.basePath}/upload/${encodeURIComponent(String(dossierId))}`,
|
||||||
{
|
{
|
||||||
body: convertFormParamsToString ? formParams.toString() : formParams,
|
body: convertFormParamsToString ? formParams.toString() : formParams,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
|
|||||||
@ -95,9 +95,7 @@ export class WatermarkControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<any>(
|
return this.httpClient.request<any>(
|
||||||
'delete',
|
'delete',
|
||||||
`${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent(
|
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -161,9 +159,7 @@ export class WatermarkControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<WatermarkModelRes>(
|
return this.httpClient.request<WatermarkModelRes>(
|
||||||
'get',
|
'get',
|
||||||
`${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent(
|
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@ -246,9 +242,7 @@ export class WatermarkControllerService {
|
|||||||
|
|
||||||
return this.httpClient.request<WatermarkModelRes>(
|
return this.httpClient.request<WatermarkModelRes>(
|
||||||
'post',
|
'post',
|
||||||
`${this.basePath}/redaction-gateway-v1/watermark/${encodeURIComponent(
|
`${this.basePath}/watermark/${encodeURIComponent(String(dossierTemplateId))}`,
|
||||||
String(dossierTemplateId)
|
|
||||||
)}`,
|
|
||||||
{
|
{
|
||||||
body: body,
|
body: body,
|
||||||
withCredentials: this.configuration.withCredentials,
|
withCredentials: this.configuration.withCredentials,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user