-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from bas-kirill/feature/render-images
feat(client): render images
- Loading branch information
Showing
73 changed files
with
1,234 additions
and
511 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Country | ||
* Basic Material | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import type { Configuration } from "../configuration"; | ||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios"; | ||
import globalAxios from "axios"; | ||
// Some imports not used depending on template conditions | ||
// @ts-ignore | ||
import { | ||
DUMMY_BASE_URL, | ||
assertParamExists, | ||
setApiKeyToObject, | ||
setBasicAuthToObject, | ||
setBearerAuthToObject, | ||
setOAuthToObject, | ||
setSearchParams, | ||
serializeDataIfNeeded, | ||
toPathString, | ||
createRequestFunction, | ||
} from "../common"; | ||
// @ts-ignore | ||
import { | ||
BASE_PATH, | ||
COLLECTION_FORMATS, | ||
type RequestArgs, | ||
BaseAPI, | ||
RequiredError, | ||
operationServerMap, | ||
} from "../base"; | ||
// @ts-ignore | ||
import type { ClientError } from "../model"; | ||
// @ts-ignore | ||
import type { InstrumentPhoto } from "../model"; | ||
// @ts-ignore | ||
import type { ServerError } from "../model"; | ||
/** | ||
* GetInstrumentPhotoApi - axios parameter creator | ||
* @export | ||
*/ | ||
export const GetInstrumentPhotoApiAxiosParamCreator = function ( | ||
configuration?: Configuration, | ||
) { | ||
return { | ||
/** | ||
* Get Instrument Photo | ||
* @summary Get Instrument Photo | ||
* @param {number} instrumentId Instrument ID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstrumentPhoto: async ( | ||
instrumentId: number, | ||
options: RawAxiosRequestConfig = {}, | ||
): Promise<RequestArgs> => { | ||
// verify required parameter 'instrumentId' is not null or undefined | ||
assertParamExists("getInstrumentPhoto", "instrumentId", instrumentId); | ||
const localVarPath = `/api/instrument/photo/{instrumentId}`.replace( | ||
`{${"instrumentId"}}`, | ||
encodeURIComponent(String(instrumentId)), | ||
); | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
|
||
const localVarRequestOptions = { | ||
method: "GET", | ||
...baseOptions, | ||
...options, | ||
}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = | ||
baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = { | ||
...localVarHeaderParameter, | ||
...headersFromBaseOptions, | ||
...options.headers, | ||
}; | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* GetInstrumentPhotoApi - functional programming interface | ||
* @export | ||
*/ | ||
export const GetInstrumentPhotoApiFp = function ( | ||
configuration?: Configuration, | ||
) { | ||
const localVarAxiosParamCreator = | ||
GetInstrumentPhotoApiAxiosParamCreator(configuration); | ||
return { | ||
/** | ||
* Get Instrument Photo | ||
* @summary Get Instrument Photo | ||
* @param {number} instrumentId Instrument ID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getInstrumentPhoto( | ||
instrumentId: number, | ||
options?: RawAxiosRequestConfig, | ||
): Promise< | ||
( | ||
axios?: AxiosInstance, | ||
basePath?: string, | ||
) => AxiosPromise<InstrumentPhoto> | ||
> { | ||
const localVarAxiosArgs = | ||
await localVarAxiosParamCreator.getInstrumentPhoto( | ||
instrumentId, | ||
options, | ||
); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = | ||
operationServerMap["GetInstrumentPhotoApi.getInstrumentPhoto"]?.[ | ||
localVarOperationServerIndex | ||
]?.url; | ||
return (axios, basePath) => | ||
createRequestFunction( | ||
localVarAxiosArgs, | ||
globalAxios, | ||
BASE_PATH, | ||
configuration, | ||
)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* GetInstrumentPhotoApi - factory interface | ||
* @export | ||
*/ | ||
export const GetInstrumentPhotoApiFactory = function ( | ||
configuration?: Configuration, | ||
basePath?: string, | ||
axios?: AxiosInstance, | ||
) { | ||
const localVarFp = GetInstrumentPhotoApiFp(configuration); | ||
return { | ||
/** | ||
* Get Instrument Photo | ||
* @summary Get Instrument Photo | ||
* @param {number} instrumentId Instrument ID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstrumentPhoto( | ||
instrumentId: number, | ||
options?: RawAxiosRequestConfig, | ||
): AxiosPromise<InstrumentPhoto> { | ||
return localVarFp | ||
.getInstrumentPhoto(instrumentId, options) | ||
.then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* GetInstrumentPhotoApi - object-oriented interface | ||
* @export | ||
* @class GetInstrumentPhotoApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export class GetInstrumentPhotoApi extends BaseAPI { | ||
/** | ||
* Get Instrument Photo | ||
* @summary Get Instrument Photo | ||
* @param {number} instrumentId Instrument ID | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GetInstrumentPhotoApi | ||
*/ | ||
public getInstrumentPhoto( | ||
instrumentId: number, | ||
options?: RawAxiosRequestConfig, | ||
) { | ||
return GetInstrumentPhotoApiFp(this.configuration) | ||
.getInstrumentPhoto(instrumentId, options) | ||
.then((request) => request(this.axios, this.basePath)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.