Add Person funding View and API integration
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
2026-06-01 14:02:25 +02:00
parent ce4ccbf154
commit fac08044a8
4 changed files with 392 additions and 6 deletions
+24 -2
View File
@@ -1,7 +1,7 @@
/**
* My App Service
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -11,7 +11,7 @@
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
@@ -165,4 +165,26 @@ export class PersonsOpenApiService extends BaseService implements PersonsOpenApi
);
}
public getFundersByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (authorId === null || authorId === undefined) {
throw new Error('Required parameter authorId was null or undefined when calling getFundersByAuthor.');
}
let localVarHeaders = this.defaultHeaders;
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
let localVarPath = `/authors/${encodeURIComponent(authorId)}/funders`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: 'json',
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
reportProgress: reportProgress
}
);
}
}