Open alex-cova opened 9 months ago
Let me know what your plans are on this PR.
Let me know what your plans are on this PR.
I'll continue working on this feature after TeenyJson gets merged, some parts of autoconfiguration will depend on TeenyJson.
Just added very basic openApi support as demonstration of the auto configuration capabilities, many cases are missing like connections to a DB, those kind of configurations must happend just before anything, thoughts?
I'll refactor how the OpenApi is rendered next commit
Update: Way better OpenApi support
Very very basic auto configuration support.
Now TeenyApplication scans for controllers/configurations/resources. (See AutoConfigurationTest)
Auto configuration order:
@Configuration
,@Enabled
@Resource
@Path
@Configuration
annotation has its own order valueThis PR adds the next annotations:
Similar to
@Import
from spring, @Enable allows TeenyHttp to have annotation-toggles, for example: