/* 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 CommonControllerService { /** * download * @param courseId courseId * @returns any OK * @throws ApiError */ public static downloadUsingGet( courseId: string, ): CancelablePromise { return __request(OpenAPI, { method: 'GET', url: '/download', query: { 'courseId': courseId, }, errors: { 401: `Unauthorized`, 403: `Forbidden`, 404: `Not Found`, }, }); } /** * upload * @param courseId courseId * @param file file * @returns BaseResponse_string_ OK * @returns any Created * @throws ApiError */ public static uploadUsingPost( courseId: string, file?: Blob, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/upload', query: { 'courseId': courseId, }, formData: { 'file': file, }, errors: { 401: `Unauthorized`, 403: `Forbidden`, 404: `Not Found`, }, }); } }