Removed tenant related parameters
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"get": {
"description": "Get tenant EULA",
"parameters": [
- {
- "in": "query",
- "name": "Tenant",
- "description": "Tenant's subdomain",
- "required": true,
- "schema": {
- "type": "string",
- "example": "slf"
- }
- },
{
"in": "query",
"name": "Language",

MODIFY
src/assets/server/rest/v1/schemas/auth/auth-eula.json
src/assets/server/rest/v1/schemas/auth/auth-eula.json
"properties": {
"Language": {
"$ref": "common.json#/definitions/language"
- },
- "Tenant": {
- "$ref": "common.json#/definitions/subdomain"
}
}
}

MODIFY
src/server/rest/v1/service/AuthService.ts
src/server/rest/v1/service/AuthService.ts
@@ -570,7 +570,7 @@ export default class AuthService {
});
}
// Get it
- const endUserLicenseAgreement = await UserStorage.getEndUserLicenseAgreement(tenantID, filteredRequest.Language);
+ const endUserLicenseAgreement = await UserStorage.getEndUserLicenseAgreement(Constants.DEFAULT_TENANT, filteredRequest.Language);
res.json(endUserLicenseAgreement);
next();
}

MODIFY
test/api/AuthenticationTest.ts
test/api/AuthenticationTest.ts
@@ -147,7 +147,7 @@ describe('Authentication Service (tenant utall)', function() {
});
it('Should be possible to retrieve tenant EULA', async () => {
- const response = await CentralServerService.defaultInstance.authenticationApi.getTenantEula('');
+ const response = await CentralServerService.defaultInstance.authenticationApi.getEula('');
// Check
expect(response.status).to.be.eql(200);
expect(response.data).to.have.property('text');

MODIFY
test/api/client/AuthenticationApi.ts
test/api/client/AuthenticationApi.ts
@@ -106,8 +106,7 @@ export default class AuthenticationApi {
return response;
}
- public async getTenantEula(tenant = '', language?: string) {
- const data = { tenant, language };
+ public async getEula(language?: string) {
// Send
const response = await this._baseApi.send({
method: 'GET',
@@ -115,7 +114,7 @@ export default class AuthenticationApi {
headers: {
'Content-Type': 'application/json'
},
- data: data
+ data: { language }
});
return response;
}

Removed tenant related parameters