The examples in this post are available in a demo repository here: https://github.com/liavzi/custom-open-api-ts-client.




The Motivation


In one of the projects I'm working on, we use a simple API service to communicate with the server:



export class ApiService {
private baseUrl = '';

constructor() {
}

get(endpoint: string):...