this autogenerated service (by NSwagStudio) needs an API_BASE_URL (InjectionToken) value in order to perform http requests how and where i can inject it?
/*
THe best practice to put all constants in environment.ts and environment.prod.ts. Just create a new property their and import in your service. Your code will look like this:
// environment.ts
export const environment = {
production: false,
API_BASE_URL: "baseUrlOfApiForDevelopment",
};
// environment.prod.ts
export const environment = {
production: false,
API_BASE_URL: "baseUrlOfApiForProduction",
};
Now you need to import in your service to use it.