Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EW-1039 tsp client requesting access from tsp token endpoint #5273

Merged
merged 10 commits into from
Oct 8, 2024
6 changes: 6 additions & 0 deletions apps/server/src/infra/tsp-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ export class MyNewService {

## How the code generation works

> IMPORTANT: Currently we are using the `openapi.json` and not the spec from
> https://test2.schulportal-thueringen.de/tip-ms/api/swagger.json, because we have to patch the security schemas
> manually into to the specification so the generator can generate them correctly. The provided
> specification does not contain all necessary definitions. Only the `Export` endpoints are
> decorated with the security definitions.

We are using the openapi-generator-cli to generate apis, models and supporting files in the
`generated` directory. **DO NOT** modify anything in the `generated` folder, because it will
be deleted on the next client generation.
Expand Down
21 changes: 21 additions & 0 deletions apps/server/src/infra/tsp-client/generated/api/export-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)

if (dtLetzteAenderung !== undefined) {
localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung;
}
Expand Down Expand Up @@ -96,6 +99,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)

if (dtLetzteAenderung !== undefined) {
localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung;
}
Expand Down Expand Up @@ -130,6 +136,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand Down Expand Up @@ -161,6 +170,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)

if (dtLetzteAenderung !== undefined) {
localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung;
}
Expand Down Expand Up @@ -195,6 +207,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand Down Expand Up @@ -226,6 +241,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)

if (dtLetzteAenderung !== undefined) {
localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung;
}
Expand Down Expand Up @@ -260,6 +278,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand Down
Loading
Loading