fixed wrong endpoint recognition in institute autocompletion

This commit is contained in:
2026-06-15 01:45:46 +02:00
parent 3037215506
commit a34119b22c
2 changed files with 30 additions and 29 deletions
@@ -43,7 +43,7 @@ export class InstitutionsService extends BaseService {
/**
* Returns institution options for autocomplete inputs.
* @endpoint get /api/institutions/autocomplete
* @endpoint get /api/inse-service/institutions/autocomplete
* @param query Institution search text, for example \'Duisburg Essen\'.
* @param countryCode Optional ISO country code filter.
* @param type Optional institution type filter.
@@ -94,7 +94,7 @@ export class InstitutionsService extends BaseService {
}
}
let localVarPath = `/api/institutions/autocomplete`;
let localVarPath = `/api/inse-service/institutions/autocomplete`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AutocompleteResponse>('get', `${basePath}${localVarPath}`,
{
@@ -113,7 +113,7 @@ export class InstitutionsService extends BaseService {
/**
* Returns a single institution by ID.
* Returns a single institution by its OpenAlex ID.
* @endpoint get /api/institutions/{id}
* @endpoint get /api/inse-service/institutions/{id}
* @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -151,7 +151,7 @@ export class InstitutionsService extends BaseService {
}
}
let localVarPath = `/api/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
let localVarPath = `/api/inse-service/institutions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Institution>('get', `${basePath}${localVarPath}`,
{
@@ -168,7 +168,7 @@ export class InstitutionsService extends BaseService {
/**
* Returns a list of OpenAlex institutions.
* @endpoint get /api/institutions
* @endpoint get /api/inse-service/institutions
* @param search Full-text search, for example \&#39;Duisburg Essen\&#39;.
* @param filter OpenAlex filter, for example \&#39;country_code:DE,type:education\&#39;.
* @param sort Sort field, for example \&#39;works_count:desc\&#39;.
@@ -231,7 +231,7 @@ export class InstitutionsService extends BaseService {
}
}
let localVarPath = `/api/institutions`;
let localVarPath = `/api/inse-service/institutions`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<InstitutionsListResponse>('get', `${basePath}${localVarPath}`,
{