Our API definitions started growing a lot which made them difficult to worked with. We have a single api-definitions folder with every definition under it. Ideally, we would like to split them by domain/micro-service. For instance
π api-definitions
π users
π attachments
It is not obvious from the documentation or code whether this is possible but when following the way API definitions are loaded, I saw that Glob is used. Which means, setting an app_path to api-definitions/** would actually glob the nested folders.
Iβve tried the above and it actually worked! So my question is, is this an unintentional side-effect or an undocumented functionality? Would be it be safe to use it as such?