···11-import type { CancelablePromise } from '../core/CancelablePromise';
22-import { OpenAPI } from '../core/OpenAPI';
33-import { request as __request } from '../core/request';
44-55-export type TDataCollectionFormat = {
66- /**
77- * This is an array parameter that is sent as csv format (comma-separated values)
88- */
99- parameterArrayCsv: Array<string>;
1010- /**
1111- * This is an array parameter that is sent as multi format (multiple parameter instances)
1212- */
1313- parameterArrayMulti: Array<string>;
1414- /**
1515- * This is an array parameter that is sent as pipes format (pipe-separated values)
1616- */
1717- parameterArrayPipes: Array<string>;
1818- /**
1919- * This is an array parameter that is sent as ssv format (space-separated values)
2020- */
2121- parameterArraySsv: Array<string>;
2222- /**
2323- * This is an array parameter that is sent as tsv format (tab-separated values)
2424- */
2525- parameterArrayTsv: Array<string>;
2626-};
2727-2828-export class CollectionFormatService {
2929- /**
3030- * @throws ApiError
3131- */
3232- public static collectionFormat(data: TDataCollectionFormat): CancelablePromise<void> {
3333- const { parameterArrayCsv, parameterArrayMulti, parameterArrayPipes, parameterArraySsv, parameterArrayTsv } =
3434- data;
3535- return __request(OpenAPI, {
3636- method: 'GET',
3737- url: '/api/v{api-version}/collectionFormat',
3838- query: {
3939- parameterArrayCSV: parameterArrayCsv,
4040- parameterArraySSV: parameterArraySsv,
4141- parameterArrayTSV: parameterArrayTsv,
4242- parameterArrayPipes,
4343- parameterArrayMulti,
4444- },
4545- });
4646- }
4747-}
···11-import type { CancelablePromise } from '../core/CancelablePromise';
22-import { OpenAPI } from '../core/OpenAPI';
33-import { request as __request } from '../core/request';
44-55-export type TDataCallWithParameters = {
66- /**
77- * This is the parameter that is sent as request body
88- */
99- parameterBody: string;
1010- /**
1111- * This is the parameter that goes into the form data
1212- */
1313- parameterForm: string;
1414- /**
1515- * This is the parameter that goes into the header
1616- */
1717- parameterHeader: string;
1818- /**
1919- * This is the parameter that goes into the path
2020- */
2121- parameterPath: string;
2222- /**
2323- * This is the parameter that goes into the query params
2424- */
2525- parameterQuery: string;
2626-};
2727-export type TDataCallWithWeirdParameterNames = {
2828- /**
2929- * This is the parameter with a reserved keyword
3030- */
3131- _default?: string;
3232- /**
3333- * This is the parameter that is sent as request body
3434- */
3535- parameterBody: string;
3636- /**
3737- * This is the parameter that goes into the request form data
3838- */
3939- parameterForm: string;
4040- /**
4141- * This is the parameter that goes into the request header
4242- */
4343- parameterHeader: string;
4444- /**
4545- * This is the parameter that goes into the path
4646- */
4747- parameterPath1?: string;
4848- /**
4949- * This is the parameter that goes into the path
5050- */
5151- parameterPath2?: string;
5252- /**
5353- * This is the parameter that goes into the path
5454- */
5555- parameterPath3?: string;
5656- /**
5757- * This is the parameter that goes into the request query params
5858- */
5959- parameterQuery: string;
6060-};
6161-6262-export class ParametersService {
6363- /**
6464- * @throws ApiError
6565- */
6666- public static callWithParameters(data: TDataCallWithParameters): CancelablePromise<void> {
6767- const { parameterBody, parameterForm, parameterHeader, parameterPath, parameterQuery } = data;
6868- return __request(OpenAPI, {
6969- method: 'POST',
7070- url: '/api/v{api-version}/parameters/{parameterPath}',
7171- path: {
7272- parameterPath,
7373- },
7474- headers: {
7575- parameterHeader,
7676- },
7777- query: {
7878- parameterQuery,
7979- },
8080- formData: {
8181- parameterForm,
8282- },
8383- body: parameterBody,
8484- });
8585- }
8686-8787- /**
8888- * @throws ApiError
8989- */
9090- public static callWithWeirdParameterNames(data: TDataCallWithWeirdParameterNames): CancelablePromise<void> {
9191- const {
9292- _default,
9393- parameterBody,
9494- parameterForm,
9595- parameterHeader,
9696- parameterPath1,
9797- parameterPath2,
9898- parameterPath3,
9999- parameterQuery,
100100- } = data;
101101- return __request(OpenAPI, {
102102- method: 'POST',
103103- url: '/api/v{api-version}/parameters/{parameter.path.1}/{parameter-path-2}/{PARAMETER-PATH-3}',
104104- path: {
105105- 'parameter.path.1': parameterPath1,
106106- 'parameter-path-2': parameterPath2,
107107- 'PARAMETER-PATH-3': parameterPath3,
108108- },
109109- headers: {
110110- 'parameter.header': parameterHeader,
111111- },
112112- query: {
113113- default: _default,
114114- 'parameter-query': parameterQuery,
115115- },
116116- formData: {
117117- parameter_form: parameterForm,
118118- },
119119- body: parameterBody,
120120- });
121121- }
122122-}
···11-import type { CancelablePromise } from '../core/CancelablePromise';
22-import { OpenAPI } from '../core/OpenAPI';
33-import { request as __request } from '../core/request';
44-55-export type TDataCollectionFormat = {
66- /**
77- * This is an array parameter that is sent as csv format (comma-separated values)
88- */
99- parameterArrayCsv: Array<string> | null;
1010- /**
1111- * This is an array parameter that is sent as multi format (multiple parameter instances)
1212- */
1313- parameterArrayMulti: Array<string> | null;
1414- /**
1515- * This is an array parameter that is sent as pipes format (pipe-separated values)
1616- */
1717- parameterArrayPipes: Array<string> | null;
1818- /**
1919- * This is an array parameter that is sent as ssv format (space-separated values)
2020- */
2121- parameterArraySsv: Array<string> | null;
2222- /**
2323- * This is an array parameter that is sent as tsv format (tab-separated values)
2424- */
2525- parameterArrayTsv: Array<string> | null;
2626-};
2727-2828-export class CollectionFormatService {
2929- /**
3030- * @throws ApiError
3131- */
3232- public static collectionFormat(data: TDataCollectionFormat): CancelablePromise<void> {
3333- const { parameterArrayCsv, parameterArrayMulti, parameterArrayPipes, parameterArraySsv, parameterArrayTsv } =
3434- data;
3535- return __request(OpenAPI, {
3636- method: 'GET',
3737- url: '/api/v{api-version}/collectionFormat',
3838- query: {
3939- parameterArrayCSV: parameterArrayCsv,
4040- parameterArraySSV: parameterArraySsv,
4141- parameterArrayTSV: parameterArrayTsv,
4242- parameterArrayPipes,
4343- parameterArrayMulti,
4444- },
4545- });
4646- }
4747-}
···11-import { Injectable } from '@angular/core';
22-import { HttpClient } from '@angular/common/http';
33-import type { Observable } from 'rxjs';
44-55-import { OpenAPI } from '../core/OpenAPI';
66-import { request as __request } from '../core/request';
77-88-export type TDataCollectionFormat = {
99- /**
1010- * This is an array parameter that is sent as csv format (comma-separated values)
1111- */
1212- parameterArrayCsv: Array<string> | null;
1313- /**
1414- * This is an array parameter that is sent as multi format (multiple parameter instances)
1515- */
1616- parameterArrayMulti: Array<string> | null;
1717- /**
1818- * This is an array parameter that is sent as pipes format (pipe-separated values)
1919- */
2020- parameterArrayPipes: Array<string> | null;
2121- /**
2222- * This is an array parameter that is sent as ssv format (space-separated values)
2323- */
2424- parameterArraySsv: Array<string> | null;
2525- /**
2626- * This is an array parameter that is sent as tsv format (tab-separated values)
2727- */
2828- parameterArrayTsv: Array<string> | null;
2929-};
3030-3131-@Injectable({
3232- providedIn: 'root',
3333-})
3434-export class CollectionFormatService {
3535- constructor(public readonly http: HttpClient) {}
3636-3737- /**
3838- * @throws ApiError
3939- */
4040- public collectionFormat(data: TDataCollectionFormat): Observable<void> {
4141- const { parameterArrayCsv, parameterArrayMulti, parameterArrayPipes, parameterArraySsv, parameterArrayTsv } =
4242- data;
4343- return __request(OpenAPI, this.http, {
4444- method: 'GET',
4545- url: '/api/v{api-version}/collectionFormat',
4646- query: {
4747- parameterArrayCSV: parameterArrayCsv,
4848- parameterArraySSV: parameterArraySsv,
4949- parameterArrayTSV: parameterArrayTsv,
5050- parameterArrayPipes,
5151- parameterArrayMulti,
5252- },
5353- });
5454- }
5555-}
···11-import type { CancelablePromise } from '../core/CancelablePromise';
22-import type { BaseHttpRequest } from '../core/BaseHttpRequest';
33-44-export type TDataCollectionFormat = {
55- /**
66- * This is an array parameter that is sent as csv format (comma-separated values)
77- */
88- parameterArrayCsv: Array<string> | null;
99- /**
1010- * This is an array parameter that is sent as multi format (multiple parameter instances)
1111- */
1212- parameterArrayMulti: Array<string> | null;
1313- /**
1414- * This is an array parameter that is sent as pipes format (pipe-separated values)
1515- */
1616- parameterArrayPipes: Array<string> | null;
1717- /**
1818- * This is an array parameter that is sent as ssv format (space-separated values)
1919- */
2020- parameterArraySsv: Array<string> | null;
2121- /**
2222- * This is an array parameter that is sent as tsv format (tab-separated values)
2323- */
2424- parameterArrayTsv: Array<string> | null;
2525-};
2626-2727-export class CollectionFormatService {
2828- constructor(public readonly httpRequest: BaseHttpRequest) {}
2929-3030- /**
3131- * @throws ApiError
3232- */
3333- public collectionFormat(data: TDataCollectionFormat): CancelablePromise<void> {
3434- const { parameterArrayCsv, parameterArrayMulti, parameterArrayPipes, parameterArraySsv, parameterArrayTsv } =
3535- data;
3636- return this.httpRequest.request({
3737- method: 'GET',
3838- url: '/api/v{api-version}/collectionFormat',
3939- query: {
4040- parameterArrayCSV: parameterArrayCsv,
4141- parameterArraySSV: parameterArraySsv,
4242- parameterArrayTSV: parameterArrayTsv,
4343- parameterArrayPipes,
4444- parameterArrayMulti,
4545- },
4646- });
4747- }
4848-}
···11-import type { CancelablePromise } from '../core/CancelablePromise';
22-import { OpenAPI } from '../core/OpenAPI';
33-import { request as __request } from '../core/request';
44-55-export type TDataCollectionFormat = {
66- /**
77- * This is an array parameter that is sent as csv format (comma-separated values)
88- */
99- parameterArrayCsv: Array<string> | null;
1010- /**
1111- * This is an array parameter that is sent as multi format (multiple parameter instances)
1212- */
1313- parameterArrayMulti: Array<string> | null;
1414- /**
1515- * This is an array parameter that is sent as pipes format (pipe-separated values)
1616- */
1717- parameterArrayPipes: Array<string> | null;
1818- /**
1919- * This is an array parameter that is sent as ssv format (space-separated values)
2020- */
2121- parameterArraySsv: Array<string> | null;
2222- /**
2323- * This is an array parameter that is sent as tsv format (tab-separated values)
2424- */
2525- parameterArrayTsv: Array<string> | null;
2626-};
2727-2828-export class CollectionFormatService {
2929- /**
3030- * @throws ApiError
3131- */
3232- public static collectionFormat(data: TDataCollectionFormat): CancelablePromise<void> {
3333- const { parameterArrayCsv, parameterArrayMulti, parameterArrayPipes, parameterArraySsv, parameterArrayTsv } =
3434- data;
3535- return __request(OpenAPI, {
3636- method: 'GET',
3737- url: '/api/v{api-version}/collectionFormat',
3838- query: {
3939- parameterArrayCSV: parameterArrayCsv,
4040- parameterArraySSV: parameterArraySsv,
4141- parameterArrayTSV: parameterArrayTsv,
4242- parameterArrayPipes,
4343- parameterArrayMulti,
4444- },
4545- });
4646- }
4747-}
···11-import type { CancelablePromise } from '../core/CancelablePromise';
22-import { OpenAPI } from '../core/OpenAPI';
33-import { request as __request } from '../core/request';
44-55-export type TDataCollectionFormat = {
66- query: {
77- /**
88- * This is an array parameter that is sent as csv format (comma-separated values)
99- */
1010- parameterArrayCsv: Array<string> | null;
1111- /**
1212- * This is an array parameter that is sent as multi format (multiple parameter instances)
1313- */
1414- parameterArrayMulti: Array<string> | null;
1515- /**
1616- * This is an array parameter that is sent as pipes format (pipe-separated values)
1717- */
1818- parameterArrayPipes: Array<string> | null;
1919- /**
2020- * This is an array parameter that is sent as ssv format (space-separated values)
2121- */
2222- parameterArraySsv: Array<string> | null;
2323- /**
2424- * This is an array parameter that is sent as tsv format (tab-separated values)
2525- */
2626- parameterArrayTsv: Array<string> | null;
2727- };
2828-};
2929-3030-export class CollectionFormatService {
3131- /**
3232- * @throws ApiError
3333- */
3434- public static collectionFormat(data: TDataCollectionFormat): CancelablePromise<void> {
3535- const { query } = data;
3636- return __request(OpenAPI, {
3737- method: 'GET',
3838- url: '/api/v{api-version}/collectionFormat',
3939- query: {
4040- ...query,
4141- },
4242- });
4343- }
4444-}
···11-import type { ModelWithString } from '../models';
22-import type { CancelablePromise } from '../core/CancelablePromise';
33-import { OpenAPI } from '../core/OpenAPI';
44-import { request as __request } from '../core/request';
11+import type { CancelablePromise } from './core/CancelablePromise';
22+import { OpenAPI } from './core/OpenAPI';
33+import { request as __request } from './core/request';
44+55+import type { ModelWithString } from './models';
5667export type TDataCallWithDefaultParameters = {
78 /**