How to use enahnce api for multipe code generated files #3809
-
I went through the Q&As but did not seem to find exactly what I was looking for. Closest was this #2506 (comment) So my issue is the following - I have a base api file and several code generated files that use injectEndpoints. Also what I would like is to be able to use enhanceEndpoints for tag management and response transformation. My structure looks like this: Lets say I do this in the api-enhanced file:
This seems to be a problem as the configuration done in api-enhanced does not have any effect. On the other hand when I do the following: Maybe combining all enhanced api's into a single would provide some peace of mind. I get it that they all work on the same reference but it is still quite strange especially for someone else that has no debbuged the issue. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
enhanceEndpoints should be called on the version of the API that has the endpoints you need injected (i.e. the result of calling injectEndpoints). this ensures that they'll be injected before the enhancement runs. |
Beta Was this translation helpful? Give feedback.
enhanceEndpoints should be called on the version of the API that has the endpoints you need injected (i.e. the result of calling injectEndpoints). this ensures that they'll be injected before the enhancement runs.