You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
3 months ago
|
/* generated using openapi-typescript-codegen -- do not edit */
|
||
|
/* istanbul ignore file */
|
||
|
/* tslint:disable */
|
||
|
/* eslint-disable */
|
||
|
import type { BaseResponse_string_ } from '../models/BaseResponse_string_';
|
||
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
||
|
import { OpenAPI } from '../core/OpenAPI';
|
||
|
import { request as __request } from '../core/request';
|
||
|
export class ResourceControllerService {
|
||
|
/**
|
||
|
* download
|
||
|
* @param id Id
|
||
|
* @param path path
|
||
|
* @returns BaseResponse_string_ OK
|
||
|
* @throws ApiError
|
||
|
*/
|
||
|
public static downloadUsingGet1(
|
||
|
id: string,
|
||
|
path: string,
|
||
|
): CancelablePromise<BaseResponse_string_> {
|
||
|
return __request(OpenAPI, {
|
||
|
method: 'GET',
|
||
|
url: '/download',
|
||
|
query: {
|
||
|
'Id': id,
|
||
|
'path': path,
|
||
|
},
|
||
|
errors: {
|
||
|
401: `Unauthorized`,
|
||
|
403: `Forbidden`,
|
||
|
404: `Not Found`,
|
||
|
},
|
||
|
});
|
||
|
}
|
||
|
/**
|
||
|
* upload
|
||
|
* @param file file
|
||
|
* @returns BaseResponse_string_ OK
|
||
|
* @returns any Created
|
||
|
* @throws ApiError
|
||
|
*/
|
||
|
public static uploadUsingPost1(
|
||
|
file?: Blob,
|
||
|
): CancelablePromise<BaseResponse_string_ | any> {
|
||
|
return __request(OpenAPI, {
|
||
|
method: 'POST',
|
||
|
url: '/upload',
|
||
|
formData: {
|
||
|
'file': file,
|
||
|
},
|
||
|
errors: {
|
||
|
401: `Unauthorized`,
|
||
|
403: `Forbidden`,
|
||
|
404: `Not Found`,
|
||
|
},
|
||
|
});
|
||
|
}
|
||
|
}
|